Part Number Hot Search : 
X9313WMZ SW61900E FR3MB TDA20 X0250C SK191 20KPA30A J012XXX
Product Description
Full Text Search
 

To Download ADV7181 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  multiformat sdtv video decoder ADV7181b rev. 0 information furnished by analog devices is believed to be accurate and reliable. however, no responsibility is assumed by analog devices for its use, nor for any infringements of patents or other rights of third parties that may result from its use. specifications subject to change without notice. no license is granted by implication or otherwise under any patent or patent ri ghts of analog devices. trademarks and registered trademarks are the prop erty of their respective owners. one technology way, p.o. box 9106, norwood, ma 02062-9106, u.s.a. tel: 781.329.4700 www.analog.com fax: 781.326.8703 ? 2004 analog devices, inc. all rights reserved. features multiformat video decoder supports ntsc-(m, j, 4.43), pal-(b/d/g/h/i/m/n), secam integrates three 54 mhz, 9-bit adcs clocked from a single 27 mhz crystal line-locked clock-compatible (llc) adaptive digital line length tracking (adllt?), signal processing, and enhanced fifo management give mini tbc functionality 5-line adaptive comb filters proprietary architecture for locking to weak, noisy, and unstable video sources such as vcrs and tuners subcarrier frequency lock an d status information output integrated agc with adaptive peak white mode macrovision? copy protection detection cti (chroma transient improvement) dnr (digital noise reduction) multiple programmable analog input formats: cvbs (composite video) s-video (y/c) yprpb component (vesa, mii, smpte, and betacam) 6 analog video input channels automatic ntsc/pal/secam identification digital output formats (8-bit or16-bit): itu-r bt.656 ycrcb 4:2:2 output + hs, vs, and field 0.5 v to 1.6 v analog signal input range differential gain: 0.6% typ differential phase: 0.6 typ programmable video controls: peak white/hue/brightness/saturation/contrast integrated on-chip video timing generator free-run mode (generates stable video ouput with no i/p) vbi decode support for close captioning, wss, cgms, edtv, gemstar? 1/2 power-down mode 2-wire serial mpu interface (i 2 c?-compatible) 3.3 v analog, 1.8 v digital core; 3.3 v io supply temperature grade:C40c to +85c 80-lead lqfp pb-free package applications dvd recorders pc video hdd-based pvrs/dvdrs lcd tvs set-top boxes security systems digital televisions portable video devices automotive entertainment avr receiver general description the ADV7181b integrated video decoder automatically detects and converts a standard analog baseband television signal- compatible with worldwide standards ntsc, pal, and secam into 4:2:2 component video data-compatible with 16-/8-bit ccir601/ccir656. the advanced and highly flexible digital output interface enables performance video decoding and conversion in line- locked clock-based systems. this makes the device ideally suited for a broad range of applications with diverse analog video characteristics, including tape based sources, broadcast sources, security/surveillance cameras, and professional systems. the 6 analog input channels accept standard composite, s-video, yprpb video signals in an extensive number of combinations. agc and clamp restore circuitry allow an input video signal peak-to-peak range of 0.5 v to 1.6 v. alternatively, these can be bypassed for manual settings. the fixed 54 mhz clocking of the adcs and datapath for all modes allows very precise, accurate sampling and digital filtering. the line-locked clock output allows the output data rate, timing signals, and output clock signals to be synchronous, asynchronous, or line locked even with 5% line length variation. the output control signals allow glueless interface connections in almost any application. the ADV7181b modes are set up over a 2-wire, serial, bidirectional port (i 2 c- compatible). the ADV7181b is fabricated in a 3.3 v cmos process. its monolithic cmos construction ensures greater functionality with lower power dissipation. the ADV7181b is packaged in a small 80-lead lqfp pb-free package.
ADV7181b rev. 0 | page 2 of 96 table of contents introduction ...................................................................................... 3 analog front end ......................................................................... 3 standard definition processor ................................................... 3 functional block diagram .............................................................. 4 specifications..................................................................................... 5 electrical characteristics ............................................................. 5 video specifications..................................................................... 6 timing specifications .................................................................. 7 analog specifications................................................................... 7 thermal specifications ................................................................ 8 timing diagrams.......................................................................... 8 absolute maximum ratings............................................................ 9 esd caution.................................................................................. 9 pin configuration and function descriptions........................... 10 analog front end ........................................................................... 12 analog input muxing ................................................................ 12 global control registers ............................................................... 14 power-save modes...................................................................... 14 reset control .............................................................................. 14 global pin control ..................................................................... 15 global status registers................................................................... 17 identification............................................................................... 17 status 1 ......................................................................................... 17 autodetection result.................................................................. 17 status 2 ......................................................................................... 17 status 3 ......................................................................................... 18 standard definition processor (sdp).......................................... 19 sd luma path ............................................................................. 19 sd chroma path......................................................................... 19 sync processing........................................................................... 20 vbi data recovery..................................................................... 20 general setup.............................................................................. 20 color controls ............................................................................ 22 clamp operation........................................................................ 24 luma filter .................................................................................. 25 chroma filter.............................................................................. 28 gain operation........................................................................... 29 chroma transient improvement (cti) .................................. 32 digital noise reduction (dnr) ............................................... 33 comb filters................................................................................ 34 av code insertion and controls ............................................. 36 synchronization output signals............................................... 38 sync processing .......................................................................... 45 vbi data decode ....................................................................... 46 pixel port configuration ............................................................... 58 mpu port description................................................................... 59 register accesses ........................................................................ 60 register programming............................................................... 60 i 2 c sequencer.............................................................................. 60 i 2 c register maps ........................................................................... 61 i 2 c register map details ........................................................... 66 i 2 c programming examples.......................................................... 88 mode 1 cvbs input (composite video on ain6)................ 88 mode 2 s-video input (y on ain1 and c on ain4) ............ 88 mode 3 525i/625i yprpb input (y on ain1, pr on ain3, and pb on ain5) ................................................................................ 89 mode 4 cvbs tuner input cvbs pal on ain6................... 89 pcb layout recommendations.................................................... 90 analog interface inputs ............................................................. 90 power supply decoupling ......................................................... 90 pll ............................................................................................... 90 digital outputs (both data and clocks)................................. 90 digital inputs .............................................................................. 91 antialiasing filters ..................................................................... 91 typical circuit connection........................................................... 92 outline dimensions ....................................................................... 94 ordering guide .......................................................................... 95 revision history 7/04revision 0: initial version
ADV7181b rev. 0 | page 3 of 96 introduction the ADV7181b is a high quality, single chip, multiformat video decoder that automatically detects and converts pal, ntsc, and secam standards in the form of composite, s-video, and component video into a digital itu-r bt.656 format. the advanced and highly flexible digital output interface enables performance video decoding and conversion in line-locked clock based systems. this makes the device ideally suited for a broad range of applications with diverse analog video charac- teristics, including tape based sources, broadcast sources, security/surveillance cameras, and professional systems. analog front end the ADV7181b analog front end comprises three 9-bit adcs that digitize the analog video si gnal before applying it to the standard definition processor. the analog front end employs differential channels to each adc to ensure high performance in mixed-signal applications. the front end also includes a 6-channel input mux that enables multiple video signals to be applied to the ADV7181b. current and voltage clamps are positioned in front of each adc to ensure that the video signal remains within the range of the converter. fine clamping of the video signals is performed downstream by digital fine clamping within the ADV7181b. the adcs are configured to run in 4 oversampling mode. standard definition processor the ADV7181b is capable of decoding a large selection of baseband video signals in composite, s-video, and component formats. the video standards supported by the ADV7181b include pal b/d/i/g/h, pal60, pal m, pal n, pal nc, ntsc m/j, ntsc 4.43, and secam b/d/g/k/l. the ADV7181b can automatically detect the video standard and process it accordingly. the ADV7181b has a 5-line, superadaptive, 2d comb filter that gives superior chrominance and luminance separation when decoding a composite video signal. this highly adaptive filter automatically adjusts its processing mode according to video standard and signal quality with no user intervention required. video user controls such as brightness, contrast, saturation, and hue are also available within the ADV7181b. the ADV7181b implements a patented adaptive digital line- length tracking (adllt) algorithm to track varying video line lengths from sources such as a vcr. adllt enables the ADV7181b to track and decode poor quality video sources such as vcrs, noisy sources from tuner outputs, vcd players, and camcorders. the ADV7181b contains a chroma transient improvement (cti) processor that sharpens the edge rate of chroma transitions, resulting in sharper vertical transitions. the ADV7181b can process a variety of vbi data services such as closed captioning (cc), wide screen signaling (wss), copy generation management system (cgms), edtv, gemstar 1/2, and extended data service (xds). the ADV7181b is fully macrovision certified; detection circuitry enables type i, ii, and iii protection levels to be identified and reported to the user. the decoder is also fully robust to all macrovision signal inputs.
ADV7181b rev. 0 | page 4 of 96 functional block diagram input mux data preprocessor decimation and downsampling filters standard definition processor luma filter luma digital fine clamp gain control luma resample luma 2d comb (4h max) chroma filter chroma demod f sc recovery chroma digital fine clamp gain control chroma resample chroma 2d comb (4h max) l-dnr output formatter sync extract line length predictor resample control av code insertion cti c-dnr a/d clamp 9 9 9 a/d clamp 9 a/d clamp 9 vbi data recovery global control synthesized llc control macrovision detection standard autodetection free run output control sync processing and clock generation serial interface control and vbi data sclk ain1?ain6 sda alsb ADV7181b control and data sync and clk control 16 hs 8 8 pixel data vs field llc sfl cvbs s-video yprpb 6 04984-0-001 intrq figure 1.
ADV7181b rev. 0 | page 5 of 96 specifications temperature range: t min to t max , C40c to +85c. the min/max specifications are guaranteed over this range. electrical characteristics at a vdd = 3.15 v to 3.45 v, d vdd = 1.65 v to 2.0 v, d vddio = 3.0 v to 3.6 v, p vdd = 1.65 v to 2.0 v (operating temperature range, unless otherwise noted). table 1. parameter symbol test conditions min typ max unit static performance resolution (each adc) n 9 bits integral nonlinearity inl bsl at 54 mhz C0.475/+0.6 ? 1.5/+2 lsb differential nonlinearity dnl bsl at 54 mhz C0.25/+0.5 C0.7/+2 lsb digital inputs input high voltage v ih 2 v input low voltage v il 0.8 v input current i in pin 29 C50 +50 a all other pins C10 +10 a input capacitance c in 10 pf digital outputs output high voltage v oh i source = 0.4 ma 2.4 v output low voltage v ol i sink = 3.2 ma 0.4 v high impedance leakage current i leak 10 a output capacitance c out 20 pf power requirements 1 digital core power supply d vdd 1.65 1.8 2 v digital i/o power supply d vddio 3.0 3.3 3.6 v pll power supply p vdd 1.65 1.8 2.0 v analog power supply a vdd 3.15 3.3 3.45 v digital core supply current i dvdd 80 ma digital i/o supply current i dvddio 2 ma pll supply current i pvdd 10.5 ma analog supply current i avdd cvbs input 2 85 ma yprpb input 3 180 ma power-down current i pwrdn 1.5 ma power-up time t pwrup 20 ms 1 guaranteed by characterization. 2 adc1 and adc2 powered down. 3 all three adcs powered on.
ADV7181b rev. 0 | page 6 of 96 video specifications guaranteed by characterization. at a vdd = 3.15 v to 3.45 v, d vdd = 1.65 v to 2.0 v, d vddio = 3.0 v to 3.6 v, p vdd = 1.65 v to 2.0 v (operating temperature range, unless otherwise noted). table 2. parameter symbol test conditions min typ max unit nonlinear specifications differential phase dp cvbs i/p, modulate 5-step 0.6 0.7 differential gain dg cvbs i/p, modulate 5-step 0.6 0.7 % luma nonlinearity lnl cvbs i/p, 5-step 0.6 0.7 % noise specifications snr unweighted luma ramp 54 db luma flat field 58 db analog front end crosstalk 60 db lock time specifications horizontal lock range C5 +5 % vertical lock range 40 70 hz fsc subcarrier lock range 1.3 khz color lock in time 60 lines sync depth range 20 200 % color burst range 5 200 % vertical lock time 2 fields autodetection switch speed 100 lines chroma specifications hue accuracy hue 1 color saturation accuracy cl_ac 1 % color agc range 5 400 % chroma amplitude error 0.5 % chroma phase error 0.5 chroma luma intermodulation 0.2 % luma specifications luma brightness accuracy cvbs, 1 v i/p 1 % luma contrast accuracy cvbs, 1 v i/p 1 %
ADV7181b rev. 0 | page 7 of 96 timing specifications guaranteed by characterization. at a vdd = 3.15 v to 3.45 v, d vdd = 1.65 v to 2.0 v, d vddio = 3.0 v to 3.6 v, p vdd = 1.65 v to 2.0 v (operating temperature range, unless otherwise noted). table 3. parameter symbol test conditions min typ max unit system clock and crystal nominal frequency 27.00 mhz frequency stability 50 ppm i 2 c port sclk frequency 400 khz sclk min pulse width high t 1 0.6 s sclk min pulse width low t 2 1.3 s hold time (start condition) t 3 0.6 s setup time (start condition) t 4 0.6 s sda setup time t 5 100 ns sclk and sda rise time t 6 300 ns sclk and sda fall time t 7 300 ns setup time for stop condition t 8 0.6 s reset feature reset pulse width 5 ms clock outputs llc1 mark space ratio t 9 :t 10 45:55 55:45 % duty cycle data and control outputs data output transitional time t 11 negative clock edge to start of valid data. (t access = t 10 C t 11 ) 3.4 ns data output transitional time t 12 end of valid data to negative clock edge. (t hold = t 9 + t 12 ) 2.4 ns analog specifications guaranteed by characterization. at a vdd = 3.15 v to 3.45 v, d vdd = 1.65 v to 2.0 v, d vddio = 3.0 v to 3.6 v, p vdd = 1.65 v to 2.0 v (operating temperature range, unless otherwise noted). table 4. parameter symbol test conditions min typ max unit clamp circuitry external clamp capacitor 0.1 f input impedance clamps switched off 10 m? large clamp source current 0.75 ma large clamp sink current 0.75 ma fine clamp source current 60 a fine clamp sink current 60 a
ADV7181b rev. 0 | page 8 of 96 thermal specifications table 5. parameter symbol test conditions min typ max unit thermal characteristics junction-to-ambient thermal resistance (still air) ja 4-layer pcb with solid ground plane, 64-lead lfcsp 45.5 c/w junction-to-case thermal resistance jc 4-layer pcb with solid ground plane, 64-lead lfcsp 9.2 c/w junction-to-ambient thermal resistance (still air) ja 4-layer pcb with solid ground plane, 64-lead lqfp 47 c/w junction-to-case thermal resistance jc 4-layer pcb with solid ground plane, 64-lead lqfp 11.1 c/w timing diagrams 04984-0-003 sda sclk t 3 t 5 t 3 t 4 t 8 t 6 t 7 t 2 t 1 figure 2. i 2 c timing output llc 04984-0-004 outputs p0?p15, vs, hs, field, sfl t 9 t 10 t 11 t 12 figure 3. pixel port and control output timing
ADV7181b rev. 0 | page 9 of 96 absolute maximum ratings table 6. parameter rating a vdd to gnd 4 v a vdd to agnd 4 v d vdd to dgnd 2.2 v p vdd to agnd 2.2 v d vddio to dgnd 4 v d vddio to avdd C0.3 v to +0.3 v p vdd to d vdd C0.3 v to +0.3 v d vddio C p vdd C0.3v to +2 v d vddio C d vdd C0.3v to +2 v a vdd C p vdd C0.3v to +2 v a vdd C d vdd C0.3v to +2 v digital inputs voltage to dgnd C0.3v to d vddio + 0.3 v digital output voltage to dgnd C0.3v to d vddio + 0.3 v analog inputs to agnd agnd C 0.3 v to a vdd + 0.3 v maximum junction temperature (t j max) 150c storage temperature range C65c to +150c infrared reflow soldering (20 s) 260c stresses above those listed under absolute maximum ratings may cause permanent damage to the device. this is a stress rating only; functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. esd caution esd (electrostatic discharge) sensitive device. electros tatic charges as high as 4000 v readily accumulate on the human body and test equipment and can discharge wi thout detection. although this product features proprietary esd protection circuitry, permanent dama ge may occur on devices subjected to high energy electrostatic discharges. therefore, proper esd precautions are recommended to avoid performance degradation or loss of functionality.
ADV7181b rev. 0 | page 10 of 96 pin configuration and fu nction descriptions 1 hs 2 dgnd 3 dvddio 4 p11 5 p10 6 p9 7 p8 8 sfl 9 dgnd 10 dvddio 11 nc 12 nc 13 p7 14 p6 15 p5 16 ain5 48 ain4 47 ain3 46 agnd 45 capc2 44 agnd 43 cml 42 refout 41 avdd 40 capy2 39 capy1 38 agnd 37 ain2 36 ain1 35 dgnd 34 nc 33 p4 17 p3 18 p2 19 llc 20 xtal1 21 xtal 22 dvdd 23 dgnd 24 p1 25 p0 26 nc 27 nc 28 pwrdn 29 elpf 30 pvdd 31 agnd 32 vs 64 field 63 p12 62 p13 61 p14 60 p15 59 dvdd 58 dgnd 57 nc 56 nc 55 sclk 54 sdat a 53 alsb 52 reset 51 nc 50 ain6 49 ADV7181b top view (not to scale) nc = no connect 04984-0-002 pin 1 indicator intrq figure 4. 64-lead lfcsp/lqfp pin configuration table 7. pin function descriptions pin no. mnemonic type function 3, 10, 24, 34, 57 dgnd g digital ground. 32, 37, 43, 45 agnd g analog ground. 4, 11 dvddio p digital i/o supply voltage (3.3 v). 23, 58 dvdd p digital core supply voltage (1.8 v). 40 avdd p analog supply voltage (3.3 v). 31 pvdd p pll supply voltage (1.8 v). 35, 36, 46C49 ain1Cain6 i analog video input channels. 12, 13, 27, 28, 33, 50, 55, 56 nc no connect pins. 26, 25, 19, 18, 17, 16, 15, 14, 8, 7, 6, 5, 62, 61, 60, 59 p0Cp15 o video pixel output port. 2 hs o horizontal synchronization output signal. 64 vs o vertical synchronization output signal. 63 field o field synchronization output signal. 1 intrq o interrupt request output. interr upt occurs when certain signal s are detected on the input video. see the interrupt register map in table 82. 53 sda i/o i 2 c port serial data input/output pin. 54 sclk i i 2 c port serial clock input (max imum clock rate of 400 khz). 52 alsb i this pin selects the i 2 c address for the ADV7181b. alsb set to a logic 0 sets the address for a write as 0x40; for alsb set to a logic high, the address selected is 0x42. 51 reset i system reset input, active low. a minimum low reset pulse width of 5 ms is required to reset the ADV7181b circuitry. 20 llc o this is a line-locked output clock for the pixel data output by the ADV7181b. nominally 27 mhz, but varies up or down a ccording to video line length. 22 xtal i this is the input pin for the 27 mhz crystal, or can be overdriven by an external 3.3 v, 27 mhz clock oscillator source. in crystal mode, the crystal must be a fundamental crystal.
ADV7181b rev. 0 | page 11 of 96 pin no. mnemonic type function 21 xtal1 o this pin should be connected to the 27 mhz crys tal or left as a no connect if an external 3.3 v, 27 mhz clock oscillator source is used to clock the ADV7181b. in crystal mode, the crystal must be a fundamental crystal. 29 pwrdn i a logic low on this pin places the adv 7181b in a power-down mode. refer to the i 2 c register maps section for more options on power-down modes for the ADV7181b. 30 elpf i the recommended external loop filter must be connected to this elpf pin, as shown in figure 44. 9 sfl o subcarrier frequency lock. this pin contains a se rial output stream that can be used to lock the subcarrier frequency when this decoder is connected to any analog devices digital video encoder. 41 refout o internal voltage reference output. refer to figure 44 for a recommended capacitor network for this pin. 42 cml o the cml pin is a common-mode level for the internal adcs. refer to figure 44 for a recommended capacitor network for this pin. 38, 39 capy1, capy2 i adcs capacitor network. refer to figure 44 for a recommended capacitor network for this pin. 44 capc2 i adcs capacitor network. refer to figure 44 for a recommended capacitor network for this pin.
ADV7181b rev. 0 | page 12 of 96 analog front end 04984-0-006 ain2 ain1 ain4 ain3 ain6 ain5 ain5 ain6 ain3 ain4 ain1 ain2 ain4 ain3 ain6 ain5 ain6 ain5 adc_sw_man_en adc0_sw[3:0] adc1_sw[3:0] adc0_sw[3:0] adc2 adc1 adc0 figure 5. internal pin connections there are two key steps to configure the ADV7181b to correctly decode the input video. 1. the analog input muxing section must be configured to correctly route the video from the analog input pins to the correct set of adcs. 2. the standard definition processor block, which decodes the digital data, should be configured to process either cvbs, yc, or yprpb. analog input muxing the ADV7181b has an integrated analog muxing section that allows more than one source of video signal to be connected to the decoder. figure 5 outlines the overall structure of the input muxing provided in the ADV7181b. a maximum of 6 cvbs inputs can be connected and decoded by the ADV7181b. as can be seen from the pin configuration and function description section, these analog input pins lie in close proximity to one another. this calls for a careful design of the pcb layout, for example, ground shielding between all signals routed through tracks that are physically close together. it is strongly recommended to connect any unused analog input pins to agnd to act as a shield. setadc_sw_man_en, manual input muxing enable, address c4 [7] adc0_sw[3:0], adc0 mux configuration, address c3 [3:0] adc1_sw[3:0], adc1 mux configuration, address c3 [7:4] adc2_sw[3:0], adc2 mux configuration, address c4 [3:0] to configure the ADV7181b analog muxing section, the user must select the analog input (ain1Cain6) that is to be processed by each adc. setadc_sw_man_en must be set to 1 to enable the muxing blocks to be configured. the three mux sections are controlled by the signal buses adc0/1/2_sw[3:0]. table 8 explains the control words used. the input signal that contains the timing information (h/v syncs) must be processed by adc0. for example, in yc input configuration, adc0 should be connected to the y channel and adc1 to the c channel. when one or more adcs are not used to process video, for example, cvbs input, the idle adcs should be powered down, (see the adc power-down control section). restrictions on the channel routing are imposed by the analog signal routing inside the ic; every input pin cannot be routed to each adc. refer to table 8 for an overview on the routing capabilities inside the chip.
ADV7181b rev. 0 | page 13 of 96 table 8. manual mux settings for all adcs (setadc_sw_man_en = 1) adc0_sw[3:0] adc0 connected to: adc1_sw[3:0] adc1 connected to: adc2_sw[3:0] adc2 connected to: 0000 no connection 0000 no connection 0000 no connection 0001 ain2 0001 no connection 0001 no connection 0010 no connection 0010 no connection 0010 no connection 0011 no connection 0011 no connection 0011 no connection 0100 ain4 0100 ain4 0100 no connection 0101 ain6 0101 ain6 0101 ain6 0110 no connection 0110 no connection 0110 no connection 0111 no connection 0111 no connection 0111 no connection 1000 no connection 1000 no connection 1000 no connection 1001 ain1 1001 no connection 1001 no connection 1010 no connection 1010 no connection 1010 no connection 1011 no connection 1011 no connection 1011 no connection 1100 ain3 1100 ain3 1100 no connection 1101 ain5 1101 ain5 1101 ain5 1110 no connection 1110 no connection 1110 no connection 1111 no connection 1111 no connection 1111 no connection 04984-0-007 connecting analog signals to ADV7181b set insel[3:0] to configure ADV7181b to decode video format: cvbs: 0000 yc: 0110 yprpb: 1001 configure adc inputs using muxing control bits (adc_sw_man_en, adc0_sw,adc1_sw, adc2_sw) figure 6. input muxing overview insel[3:0] input selection, address 0x00 [3:0] the insel bits allow the user to select the input format. it configures the standard definition processor core to process cvbs (comp), s-video (y/c), or component (ypbpr) format. table 9. standard definition processor format selection, insel[3:0] insel[3:0] video format 0000 composite 0110 yc 1001 yprpb
ADV7181b rev. 0 | page 14 of 96 global control registers register control bits listed in this section affect the whole chip. power-save modes power-down pdbp, address 0x0f [2] the digital core of the ADV7181b can be shut down by using a pin ( pwrdn ) and a bit (pwrdn see below). the pdbp controls which of the two has the higher priority. the default is to give the pin ( pwrdn ) priority. this allows the user to have the ADV7181b powered down by default. when pdbd is 0 (default), the digital core power is controlled by the pwrdn pin (the bit is disregarded). when pdbd is 1, the bit has priority (the pin is disregarded). pwrdn, address 0x0f [5] setting the pwrdn bit switches the ADV7181b into a chip- wide power-down mode. the power-down stops the clock from entering the digital section of the chip, thereby freezing its operation. no i 2 c bits are lost during power-down. the pwrdn bit also affects the analog blocks and switches them into low current modes. the i 2 c interface itself is unaffected, and remains operational in power-down mode. the ADV7181b leaves the power-down state if the pwrdn bit is set to 0 (via i 2 c), or if the overall part is reset using the reset pin. pdbp must be set to 1 for the pwrdn bit to power down the ADV7181b. when pwrdn is 0 (default), the chip is operational. when pwrdn is 1, the ADV7181b is in chip-wide power-down. adc power-down control the ADV7181b contains three 9-bit adcs (adc 0, adc 1, and adc 2). if required, it is possible to power down each adc individually. when should the adcs be powered down? ? cvbs mode. adc 1 and adc 2 should be powered down to save on power consumption. ? s-video mode. adc 2 should be powered down to save on power consumption. pwrdn_adc_0, address 0x3a [3] when pwrdn_adc_0 is 0 (default), the adc is in normal operation. when pwrdn_adc_0 is 1, adc 0 is powered down. pwrdn_adc_1, address 0x3a [2] when pwrdn_adc_1 is 0 (default), the adc is in normal operation. when pwrdn_adc_1 is 1, adc 1 is powered down. pwrdn_adc_2, address 0x3a [1] when pwrdn_adc_2 is 0 (default), the adc is in normal operation (default). when pwrdn_adc_2 is 1, adc 2 is powered down. reset control chip reset (res), address 0x0f [7] setting this bit, equivalent to controlling the reset pin on the ADV7181b, issues a full chip reset. all i 2 c registers are reset to their default values. note that some register bits do not have a reset value specified. they keep their last written value. those bits are marked as having a reset value of x in the register table. after the reset sequence, the part immediately starts to acquire the incoming video signal. after setting the res bit (or initiating a reset via the pin), the part returns to the default mode of operation with respect to its primary mode of operation. all i 2 c bits are loaded with their default values, making this bit self-clearing. executing a software reset takes approximately 2 ms. however, it is recommended to wait 5 ms before any further i 2 c writes are performed. the i 2 c master controller receives a no acknowledge condition on the ninth clock cycle when chip reset is implemented. see the mpu port description section. when res is 0 (default), operation is normal. when res is 1, the reset sequence starts.
ADV7181b rev. 0 | page 15 of 96 global pin control three-state output drivers tod, address 0x03 [6] this bit allows the user to three-state the output drivers of the ADV7181b. upon setting the tod bit, the p15Cp0, hs, vs, field, and sfl pins are three-stated. the timing pins (hs/vs/field) can be forced active via the tim_oe bit. for more information on three-state control, refer to the three-state llc driver and the timing signals output enable sections. individual drive strength controls are provided via the dr_str_xx bits. when tod is 0 (default), the output drivers are enabled. when tod is 1, the output drivers are three-stated. three-state llc driver tri_llc, address 0x1d [7] this bit allows the output drivers for the llc pin of the ADV7181b to be three-stated. for more information on three- state control, refer to the three-state output drivers and the timing signals output enable sections. individual drive strength controls are provided via the dr_str_xx bits. when tri_llc is 0 (default), the llc pin drivers work according to the dr_str_c[1:0] setting (pin enabled). when tri_llc is 1, the llc pin drivers are three-stated. timing signals output enable tim_oe, address 0x04 [3] the tim_oe bit should be regarded as an addition to the tod bit. setting it high forces the output drivers for hs, vs, and field into the active (i.e., driving) state even if the tod bit is set. if set to low, the hs, vs, and field pins are three-stated dependent on the tod bit. this functionality is useful if the decoder is to be used as a timing generator only. this may be the case if only the timing signals are to be extracted from an incoming signal, or if the part is in free-run mode where a separate chip can output, for instance, a company logo. for more information on three-state control, refer to the three- state output drivers and the three-state llc driver sections. individual drive strength controls are provided via the dr_str_xx bits. when tim_oe is 0 (default), hs, vs, and field are three- stated according to the tod bit. when tim_oe is 1, hs, vs, and field are forced active all the time. drive strength selection (data) dr_str[1:0] address 0xf4 [5:4] for emc and crosstalk reasons, it may be desirable to strengthen or weaken the drive strength of the output drivers. the dr_str[1:0] bits affect the p[15:0] output drivers. for more information on three-state control, refer to the drive strength selection (clock) and the drive strength selection (sync) sections. table 10. dr_str function dr_str[1:0] description 00 low drive strength (1). 01 (default) medium low drive strength (2). 10 medium high drive strength (3). 11 high drive strength (4). drive strength selection (clock) dr_str_c[1:0] address 0xf4 [3:2] the dr_str_c[1:0] bits can be used to select the strength of the clock signal output driver (llc pin). for more information, refer to the drive strength selection (sync) and the drive strength selection (data) sections. table 11. dr_str function dr_str[1:0] description 00 low drive strength (1). 01 (default) medium low drive strength (2). 10 medium high drive strength (3). 11 high drive strength (4). drive strength selection (sync) dr_str_s[1:0] address 0xf4 [1:0] the dr_str_s[1:0] bits allow the user to select the strength of the synchronization signals with which hs, vs, and f are driven. for more information, refer to the drive strength selection (data) section. table 12. dr_str function dr_str[1:0] description 00 low drive strength (1). 01 (default) medium low drive strength (2). 10 medium high drive strength (3). 11 high drive strength (4).
ADV7181b rev. 0 | page 16 of 96 enable subcarrier frequency lock pin en_sfl_pin address 0x04 [1] the en_sfl_pin bit enables the output of subcarrier lock information (also known as genlock) from the ADV7181b core to an encoder in a de coder-encoder back-to-back arrangement. when en_sfl_pin is 0 (default), the subcarrier frequency lock output is disabled. when en_sfl_pin is 1, the subcarrier frequency lock information is presented on the sfl pin. polarity llc pin pclk address 0x37 [0] the polarity of the clock that leaves the ADV7181b via the llc pin can be inverted using the pclk bit. changing the polarity of the llc clock output may be necessary to meet the setup-and-hold time expectations of follow-on chips. when pclk is 0, the llc output polarity is inverted. when pclk is 1 (default), the llc output polarity is normal (as per the timing diagrams).
ADV7181b rev. 0 | page 17 of 96 global status registers four registers provide summary information about the video decoder. the ident register allows the user to identify the revision code of the ADV7181b . the other three registers contain status bits from the ADV7181b. identification ident[7:0] address 0x11 [7:0] the register identification of the revision of the ADV7181b. an identification value of 0x11 indicates the ADV7181, released silicon. an identification value of 0x13 indicates the ADV7181b. status 1 status_1[7:0] address 0x10 [7:0] this read-only register provides information about the internal status of the ADV7181b. see cil[2:0] count into lock, address 0x51 [2:0] and col[2:0 count out of lock, address 0x51 [5:3] for information on the timing. depending on the setting of the fscle bit, the status 0 and status 1 are based solely on horizontal timing info or on the horizontal timing and lock status of the color subcarrier. see the fscle fsc lock enable, address 0x51 [7] section. autodetection result ad_result[2:0] address 0x10 [6:4] the ad_result[2:0] bits report back on the findings from the ADV7181b autodetection block. consult the general setup section for more information on enabling the autodetection block, and the autodetection of sd modes section to find out how to configure it. table 13. ad_result function ad_result[2:0] description 000 ntsm-mj 001 ntsc-443 010 pal-m 011 pal-60 100 pal-bghid 101 secam 110 pal-combination n 111 secam 525 table 14. status 1 function status 1 [7:0] bit name description 0 in_lock in lock (right now). 1 lost_lock lost lock (since la st read of this register). 2 fsc_lock fsc locked (right now). 3 follow_pw agc follows peak white algorithm. 4 ad_result.0 result of autodetection. 5 ad_result.1 result of autodetection. 6 ad_result.2 result of autodetection. 7 col_kill color kill active. status 2 status_2[7:0], address 0x12 [7:0] table 15. status 2 function status 2 [7:0] bit name description 0 mvcs det detected macrovision color striping. 1 mvcs t3 macrovision color striping protection. conforms to type 3 (if high), and type 2 (if low). 2 mv_ps det detected macrovision pseudo sync pulses. 3 mv_agc det detected macrovision agc pulses. 4 ll_nstd line length is nonstandard. 5 fsc_nstd fsc frequency is nonstandard. 6 reserved 7 reserved
ADV7181b rev. 0 | page 18 of 96 status 3 status_3[7:0], address 0x13 [7:0] table 16. status 3 function status 3 [7:0] bit name description 0 inst_hlock horizontal lock indicator (ins tantaneous). 1 gemd gemstar detect. 2 sd_op_50hz flags whether 50 hz or 60 hz is present at output. 3 reserved for future use. 4 free_run_act ADV7181b outputs a blue screen (see th e def_val_en default value enable, address 0x0c [0] section). 5 std_fld_len field length is correct for currently selected video standard. 6 interlaced interlaced video de tected (field sequence found). 7 pal_sw_lock reliable sequence of swinging bursts detected.
ADV7181b rev. 0 | page 19 of 96 standard definition processor (sdp) 04984-0-008 digitized cvbs digitized y (yc) video data output standard definition processor digitized cvbs digitized c (yc) macrovision detection vbi data recovery standard autodetection luma filter luma digital fine clamp gain control luma resample luma 2d comb sllc control chroma filter chroma demod f sc recovery chroma digital fine clamp gain control chroma resample chroma 2d comb sync extract line length predictor resample control av code insertion measurement block (= >1 2 c) video data processing block figure 7. block diagram of the standard definition processor a block diagram of the ADV7181bs standard definition processor (sdp) is shown in figure 7. the ADV7181b can handle standard definition video in cvbs, yc, and yprpb formats. it can be divided into a luminance and chrominance path. if the input video is of a composite type (cvbs), both processing paths are fed with the cvbs input. sd luma path the input signal is processed by the following blocks: ? digital fine clamp. this block uses a high precision algorithm to clamp the video signal. ? luma filter block. this block contains a luma decimation filter (yaa) with a fixed response, and some shaping filters (ysh) that have selectable responses. ? luma gain control. the automatic gain control (agc) can operate on a variety of different modes, including gain based on the depth of the horizontal sync pulse, peak white mode, and fixed manual gain. ? luma resample. to correct for line-length errors as well as dynamic line-length changes, the data is digitally resampled. ? luma 2d comb. the two-dimensional comb filter provides yc separation. ? av code insertion. at this point, the decoded luma (y) signal is merged with the retrieved chroma values. av codes (as per itu-r. bt-656) can be inserted. sd chroma path the input signal is processed by the following blocks: ? digital fine clamp. this block uses a high precision algorithm to clamp the video signal. ? chroma demodulation. this block employs a color subcarrier (fsc) recovery unit to regenerate the color subcarrier for any modulated chroma scheme. the demodulation block then performs an am demodulation for pal and ntsc, and an fm demodulation for secam. ? chroma filter block. this block contains a chroma decimation filter (caa) with a fixed response, and some shaping filters (csh) that have selectable responses. ? gain control. automatic gain control (agc) can operate on several different modes, including gain based on the color subcarriers amplitude, gain based on the depth of the horizontal sync pulse on the luma channel, or fixed manual gain. ? chroma resample. the chroma data is digitally resampled to keep it perfectly aligned with the luma data. the resampling is done to correct for static and dynamic line- length errors of the incoming video signal. ? chroma 2d comb. the two-dimensional, 5-line, superadaptive comb filter provides high quality yc separation in case the input signal is cvbs. ? av code insertion. at this point, the demodulated chroma (cr and cb) signal is merged with the retrieved luma values. av codes (as per itu-r. bt-656) can be inserted.
ADV7181b rev. 0 | page 20 of 96 sync processing the ADV7181b extracts syncs em bedded in the video data stream. there is currently no support for external hs/vs inputs. the sync extraction has been optimized to support imperfect video sources such as videocassette recorders with head switches. the actual algorithm used employs a coarse detection based on a threshold crossing followed by a more detailed detection using an adaptive interpolation algorithm. the raw sync information is sent to a line-length measurement and prediction block. the output of this is then used to drive the digital resampling section to ensure that the ADV7181b outputs 720 active pixels per line. the sync processing on the ADV7181b also includes the following specialized postprocessing blocks that filter and condition the raw sync information retrieved from the digitized analog video. ? vsync processor. this block provides extra filtering of the detected vsyncs to give improved vertical lock. ? hsync processor. the hsync processor is designed to filter incoming hsyncs that have been corrupted by noise, providing much improved performance for video signals with stable time base but poor snr. vbi data recovery the ADV7181b can retrieve the following information from the input video: ? wide-screen signaling (wss) ? copy generation management system (cgms) ? closed caption (cc) ? macrovision protection presence ? edtv data ? gemstar-compatible data slicing the ADV7181b is also capable of automatically detecting the incoming video standard with respect to ? color subcarrier frequency ? field rate ? line rate the ADV7181b can configure itself to support pal-bghid, pal-m/n, pal-combination n, ntsc-m, ntsc-j, secam 50 hz/60 hz, ntsc4.43, and pal60. general setup video standard selection the vid_sel[3:0] register allows the user to force the digital core into a specific video standard. under normal circumstances, this should not be necessary. the vid_sel[3:0] bits default to an autodetection mode that supports pal, ntsc, secam, and variants thereof. the following section provides more informa- tion on the autodetection system. autodetection of sd modes in order to guide the autodetect system of the ADV7181b, individual enable bits are provided for each of the supported video standards. setting the relevant bit to 0 inhibits the standard from being detected automatically. instead, the system picks the closest of the remaining enabled standards. the results of the autodetection block can be read back via the status registers. see the global status registers section for more information. vid_sel[3:0]address 0x00 [7:4] table 17. vid_sel function vid_sel[3:0] description 0000 (default) autodetect (pal bghid) ntsc j (no pedestal), secam. 0001 autodetect (pal bghid) ntsc m (pedestal), secam. 0010 autodetect (pal n) (pedestal) ntsc j (no pedestal), secam. 0011 autodetect (pal n) (pedestal) ntsc m (pedestal), secam. 0100 ntsc j (1). 0101 ntsc m (1). 0110 pal 60. 0111 ntsc 4.43 (1). 1000 pal bghid. 1001 pal n (= pal bghid (with pedestal)). 1010 pal m (without pedestal). 1011 pal m. 1100 pal combination n. 1101 pal combination n (with pedestal). 1110 secam. 1111 secam (with pedestal). ad_sec525_en enable autodetection of secam 525 line video, address 0x07 [7] setting ad_sec525_en to 0 (default) disables the autodetection of a 525-line system with a secam style, fm- modulated color component. setting ad_sec525_en to 1 enables the detection.
ADV7181b rev. 0 | page 21 of 96 ad_secam_en enable autodetection of secam, address 0x07 [6] setting ad_secam_en to 0 (default) disables the autodetection of secam. setting ad_secam_en to 1 enables the detection. ad_n443_en enable autodetection of ntsc 443, address 0x07 [5] setting ad_n443_en to 0 disables the autodetection of ntsc style systems with a 4.43 mhz color subcarrier. setting ad_n443_en to 1 (default) enables the detection. ad_p60_en enable autodetection of pal60, address 0x07 [4] setting ad_p60_en to 0 disables the autodetection of pal systems with a 60 hz field rate. setting ad_p60_en to 1 (default) enables the detection. ad_paln_en enable autodetection of pal n, address 0x07 [3] setting ad_paln_en to 0 (default) disables the detection of the pal n standard. setting ad_paln_en to 1 enables the detection. ad_palm_en enable autodetection of pal m, address 0x07 [2] setting ad_palm_en to 0 (default) disables the autodetection of pal m. setting ad_palm_en to 1 enables the detection. ad_ntsc_en enable autodetection of ntsc, address 0x07 [1] setting ad_ntsc_en to 0 (default) disables the detection of standard ntsc. setting ad_ntsc_en to 1 enables the detection. ad_pal_en enable autodetection of pal, address 0x07 [0] setting ad_pal_en to 0 (default) disables the detection of standard pal. setting ad_pal_en to 1 enables the detection. sfl_inv subcarrier freq uency lock inversion this bit controls the behavior of the pal switch bit in the sfl (genlock telegram) data stream. it was implemented to solve some compatibility issues with video encoders. it solves two problems. first, the pal switch bit is only meaningful in pal. some encoders (including analog devices encoders) also look at the state of this bit in ntsc. second, there was a design change in analog devices encoders from adv717x to adv719x. the older versions used the sfl (genlock telegram) bit directly, while the later ones invert the bit prior to using it. the reason for this is that the inversion compensated for the 1-line delay of an sfl (genlock telegram) transmission. as a result, adv717x encoders need the pal switch bit in the sfl (genlock telegram) to be 1 for ntsc to work. also, adv7190/adv7191/adv7194 encoders need the pal switch bit in the sfl to be 0 to work in ntsc. if the state of the pal switch bit is wrong, a 180 phase shift occurs. in a decoder/encoder back-to-back system in which sfl is used, this bit must be set up properly for the specific encoder used. sfl_inv function address 0x41 [6] setting sfl_inv to 0 makes the part sfl-compatible with adv7190/adv7191/adv7194 encoders. setting sfl_inv to 1 (default) makes the part sfl-compatible with adv717x/adv7173x encoders. lock related controls lock information is presented to the user through bits [1:0] of the status 1 register. see the status_1[7:0] address 0x10 [7:0] section. figure 8 outlines the signal flow and the controls available to influence the way the lock status information is generated. 04984-0-009 1 0 time_win free_run status 1 [0] select the raw lock signal srls filter the raw lock signal cil[2:0], col[2:0] take f sc lock into account fscle status 1 [1] f sc lock 1 0 counter into lock counter out of lock memory figure 8. lock related signal path
ADV7181b rev. 0 | page 22 of 96 srls select raw lock signal, address 0x51 [6] using the srls bit, the user can choose between two sources for determining the lock status (per bits [1:0] in the status 1 register). ? the time_win signal is based on a line-to-line evaluation of the horizontal synchronization pulse of the incoming video. it reacts quite quickly. ? the free_run signal evaluates the properties of the incoming video over several fields, and takes vertical synchronization information into account. setting srls to 0 (default) selects the free_run signal. setting srls to 1 selects the time_win signal. fscle fsc lock enable, address 0x51 [7] the fscle bit allows the user to choose whether the status of the color subcarrier loop is taken into account when the overall lock status is determined and presented via bits [1:0] in status register 1. this bit must be set to 0 when operating the ADV7181b in yprpb component mode in order to generate a reliable hlock status bit. when fscle is set to 0 (default), the overall lock status only is dependent on horizontal sync lock. when fscle is set to 1, the overall lock status is dependent on horizontal sync lock and fsc lock. cil[2:0] count into lock, address 0x51 [2:0] cil[2:0] determines the number of consecutive lines for which the into lock condition must be true before the system switches into the locked state, and reports this via status 0 [1:0]. it counts the value in lines of video. table 18. cil function cil[2:0] description 000 1 001 2 010 5 011 10 100 (default) 100 101 500 110 1000 111 100000 col[2:0] count out of lock, address 0x51 [5:3] col[2:0] determines the number of consecutive lines for which the out of lock condition must be true before the system switches into unlocked state, and reports this via status 0 [1:0]. it counts the value in lines of video. table 19. col function col[2:0] description 000 1 001 2 010 5 011 10 100 (default) 100 101 500 110 1000 111 100000 color controls these registers allow the user to control picture appearance, including control of the active data in the event of video being lost. these controls are independent of any other controls. for instance, brightness control is independent from picture clamping, although both controls affect the signals dc level. con[7:0] contrast adjust, address 0x08 [7:0] this register allows the user to control contrast adjustment of the picture. table 20. con function con[7:0] description 0x80 (default) gain on luma channel = 1. 0x00 gain on luma channel = 0. 0xff gain on luma channel = 2. sd_sat_cb[7:0] sd saturation cb channel, address 0xe3 [7:0] this register allows the user to control the gain of the cb channel only, which in turn adjusts the saturation of the picture. table 21. sd_sat_cb function sd_sat_cb[7:0] description 0x80 (default) gain on cb channel = 0 db. 0x00 gain on cb channel = ?42 db. 0xff gain on cb channel = +6 db.
ADV7181b rev. 0 | page 23 of 96 sd_sat_cr[7:0] sd sa turation cr channel, address 0xe4 [7:0] this register allows the user to control the gain of the cr channel only, which in turn adjusts the saturation of the picture. table 22. sd_sat_cr function sd_sat_cr[7:0] description 0x80 (default) gain on cr channel = 0 db. 0x00 gain on cb channel = ?42 db. 0xff gain on cb channel = +6 db. sd_off_cb[7:0] sd offset cb channel, address 0xe1 [7:0] this register allows the user to select an offset for the cb channel only and adjust the hue of the picture. there is a functional overlap with the hue [7:0] register. table 23. sd_off_cb function sd_off_cb[7:0] description 0x80 (default) 0 offset appl ied to the cb channel. 0x00 ?312 mv offset applie d to the cb channel. 0xff +312 mv offset applie d to the cb channel. sd_off_cr [7:0] sd offset cr channel, address 0xe2 [7:0] this register allows the user to select an offset for the cr channel only and adjust the hue of the picture. there is a functional overlap with the hue [7:0] register. table 24. sd_off_cr function sd_off_cr[7:0] description 0x80 (default) 0 offset a pplied to the cr channel 0x00 ?312 mv offset applied to the cr channel 0xff +312 mv offset applied to the cr channel bri[7:0] brightness adjust, address 0x0a [7:0] this register controls the brightness of the video signal. it allows the user to adjust the brightness of the picture. table 25. bri function bri[7:0] description 0x00 (default) offset of the luma channel = 0ire. 0x7f offset of the luma channel = 100ire. 0x80 offset of the luma channel = C100ire. hue[7:0] hue adjust, address 0x0b [7:0] this register contains the value for the color hue adjustment. it allows the user to adjust the hue of the picture. hue[7:0] has a range of 90, with 0x00 equivalent to an adjustment of 0. the resolution of hue[7:0] is 1 bit = 0.7. the hue adjustment value is fed into the am color demodula- tion block. therefore, it only applies to video signals that contain chroma information in the form of an am-modulated carrier (cvbs or y/c in pal or ntsc). it does not affect secam and does not work on component video inputs (yprpb). table 26. hue function hue[7:0] description (adjust hue of the picture) 0x00 (default) phase of th e chroma signal = 0. 0x7f phase of the chroma signal = C90. 0x80 phase of the chroma signal = +90. def_y[5:0] default value y, address 0x0c [7:2] when the ADV7181b loses lock on the incoming video signal or when there is no input signal, the def_y[5:0] register allows the user to specify a default luma value to be output. this value is used under the following conditions: ? if def_val_auto_en bit is set to high and the ADV7181b lost lock to the input video signal. this is the intended mode of operation (automatic mode). ? the def_val_en bit is set, regardless of the lock status of the video decoder. this is a forced mode that may be useful during configuration. the def_y[5:0] values define the 6 msbs of the output video. the remaining lsbs are padded with 0s. for example, in 8-bit mode, the output is y[7:0] = {def_y[5:0], 0, 0}. def_y[5:0] is 0x0d (blue) is the default value for y. register 0x0c has a default value of 0x36. def_c[7:0] default value c, address 0x0d [7:0] the def_c[7:0] register complements the def_y[5:0] value. it defines the 4 msbs of cr and cb values to be output if ? the def_val_auto_en bit is set to high and the ADV7181b cant lock to the input video (automatic mode). ? def_val_en bit is set to high (forced output). the data that is finally output from the ADV7181b for the chroma side is cr[7:0] = {def_c[7:4], 0, 0, 0, 0}, cb[7:0] = {def_c[3:0], 0, 0, 0, 0}. def_c[7:0] is 0x7c (blue) is the default value for cr and cb.
ADV7181b rev. 0 | page 24 of 96 def_val_en default value enable, address 0x0c [0] this bit forces the use of the default values for y, cr, and cb. refer to the descriptions for def_y and def_c for additional information. in this mode, the decoder also outputs a stable 27 mhz clock, hs, and vs. setting def_val_en to 0 (default) outputs a colored screen determined by user programmable y, cr, and cb values when the decoder free-runs. free-run mode is turned on and off by the def_val_auto_en bit. setting def_val_en to 1 forces a colored screen output determined by user programmable y, cr, and cb values. this overrides picture data even if the decoder is locked. def_val_auto_en default value automatic enable, address 0x0c [1] this bit enables the automatic use of the default values for y, cr, and cb when the ADV7181b cannot lock to the video signal. setting def_val_auto_en to 0 disables free-run mode. if the decoder is unlocked, it outputs noise. setting def_val_en to 1 (default) enables free-run mode, and a colored screen set by user programmable y, cr and cb values is displayed when the decoder loses lock. clamp operation the input video is ac-coupled into the ADV7181b. therefore, its dc value needs to be restored. this process is referred to as clamping the video. this section explains the general process of clamping on the ADV7181b, and shows the different ways in which a user can configure its behavior. the ADV7181b uses a combination of current sources and a digital processing block for clamping, as shown in figure 9. the analog processing channel shown is replicated three times inside the ic. while only one single channel (and only one adc) would be needed for a cvbs signal, two independent channels are needed for yc (s-vhs) type signals, and three independent channels are needed to allow component signals (yprpb) to be processed. the clamping can be divided into two sections: ? clamping before the adc (analog domain): current sources. ? clamping after the adc (digital domain): digital processing block. the adcs can digitize an input signal only if it resides within the adcs 1.6 v input voltage range. an input signal with a dc level that is too large or too small is clipped at the top or bottom of the adc range. the primary task of the analog clamping circuits is to ensure that the video signal stays within the valid adc input window so that the analog-to-digital conversion can take place. it is not necessary to clamp the input signal with a very high accuracy in the analog domain as long as the video signal fits the adc range. after digitization, the digital fine clamp block corrects for any remaining variations in dc level. since the dc level of an input video signal refers directly to the brightness of the picture transmitted, it is important to perform a fine clamp with high accuracy; otherwise, brightness variations may occur. further- more, dynamic changes in the dc level almost certainly lead to visually objectionable artifacts, and must therefore be prohibited. the clamping scheme has to complete two tasks. it must be able to acquire a newly connected video signal with a completely unknown dc level, and it must maintain the dc level during normal operation. for quickly acquiring an unknown video signal, the large current clamps may be activated. note that it is assumed that the ampli- tude of the video signal at this point is of a nominal value. control of the coarse and fine current clamp parameters is performed automatically by the decoder. standard definition video signals may have excessive noise on them. in particular, cvbs signals transmitted by terrestrial broadcast and demodulated using a tuner usually show very large levels of noise (>100 mv). a voltage clamp would be unsuitable for this type of video signal. instead, the ADV7181b employs a set of four current sources that can cause coarse (>0.5 ma) and fine (<0.1 ma) currents to flow into and away from the high impedance node that carries the video signal (see figure 9). 04984-0-010 coarse current sources fine current sources data pre- processor (dpp) adc sdp with digital fine clamp clamp control a nalo g video input figure 9. clamping overview
ADV7181b rev. 0 | page 25 of 96 the following sections describe the i 2 c signals that can be used to influence the behavior of the clamping block. previous revisions of the ADV7181b had controls (facl/ficl, fast and fine clamp length) to allow configuration of the length for which the coarse (fast) and fine current sources are switched on. these controls were removed on the ADV7181-ft and replaced by an adaptive scheme. cclen current clamp enable, address 0x14 [4] the current clamp enable bit allows the user to switch off the current sources in the analog front end altogether. this may be useful if the incoming analog video signal is clamped externally. when cclen is 0, the current sources are switched off. when cclen is 1 (default), the current sources are enabled. dct[1:0] digital clamp timing, address 0x15 [6:5] the clamp timing register determines the time constant of the digital fine clamp circuitry. it is important to realize that the digital fine clamp reacts very quickly since it is supposed to immediately correct any residual dc level error for the active line. the time constant of the digital fine clamp must be much quicker than the one from the analog blocks. by default, the time constant of the digital fine clamp is adjusted dynamically to suit the currently connected input signal. table 27. dct function dct[1:0] description 00 slow (tc = 1 sec). 01 medium (tc = 0.5 sec). 10 (default) fast (tc = 0.1 sec). 11 determined by ADV7181b, depending on the input video parameters. dcfe digital clamp freeze enable, address 0x15 [4] this register bit allows the user to freeze the digital clamp loop at any time. it is intended for users who would like to do their own clamping. users should disable the current sources for analog clamping via the appropriate register bits, wait until the digital clamp loop settles, and then freeze it via the dcfe bit. when dcfe to 0 (default), the digital clamp is operational . when dcfe is 1, the digital clamp loop is frozen. luma filter data from the digital fine clamp block is processed by three sets of filters. note that the data format at this point is cvbs for cvbs input or luma only for y/c and yprpb input formats. ? luma antialias filter (yaa). the ADV7181b receives video at a rate of 27 mhz. (in the case of 4 oversampled video, the adcs sample at 54 mhz, and the first decimation is performed inside the dpp filters. therefore, the data rate into the ADV7181b is always 27 mhz.) the itu-r bt.601 recommends a sampling frequency of 13.5 mhz. the luma antialias filter decimates the oversampled video using a high quality, linear phase, low-pass filter that preserves the luma signal while at the same time attenuating out-of-band components. the luma antialias filter (yaa) has a fixed response. ? luma shaping filters (ysh). the shaping filter block is a programmable low-pass filter with a wide variety of responses. it can be used to selectively reduce the luma video signal bandwidth (needed prior to scaling, for example). for some video sources that contain high frequency noise, reducing the bandwidth of the luma signal improves visual picture quality. a follow-on video compression stage may work more efficiently if the video is low-pass filtered. the ADV7181b has two responses for the shaping filter: one that is used for good quality cvbs, component, and s- vhs type sources, and a second for nonstandard cvbs signals. the ysh filter responses also include a set of notches for pal and ntsc. however, it is recommended to use the comb filters for yc separation. ? digital resampling filter. this block is used to allow dynamic resampling of the video signal to alter parameters such as the time base of a line of video. fundamentally, the resam- pler is a set of low-pass filters. the actual response is chosen by the system with no requirement for user intervention. figure 11 through figure 14 show the overall response of all filters together. unless otherwise noted, the filters are set into a typical wideband mode.
ADV7181b rev. 0 | page 26 of 96 y shaping filter for input signals in cvbs format, the luma shaping filters play an essential role in removing the chroma component from a composite signal. yc separation must aim for best possible crosstalk reduction while still retaining as much bandwidth (especially on the luma component) as possible. high quality yc separation can be achieved by using the internal comb filters of the ADV7181b. comb filtering, however, relies on the frequency relationship of the luma component (multiples of the video line rate) and the color subcarrier (fsc). for good quality cvbs signals, this relationship is known; the comb filter algorithms can be used to separate out luma and chroma with high accuracy. in the case of nonstandard video signals, the frequency relationship may be disturbed and the comb filters may not be able to remove all crosstalk artifacts in an optimum fashion without the assistance of the shaping filter block. an automatic mode is provided. here, the ADV7181b evaluates the quality of the incoming video signal and selects the filter responses in accordance with the signal quality and video standard. yfsm, wysfmovr, and wysfm allow the user to manually override the automatic decisions in part or in full. the luma shaping filter has three control registers: ? ysfm[4:0] allows the user to manually select a shaping filter mode (applied to all video signals) or to enable an automatic selection (dependent on video quality and video standard). ? wysfmovr allows the user to manually override the wysfm decision. ? wysfm[4:0] allows the user to select a different shaping filter mode for good quality cvbs, component (yprpb), and s-vhs (yc) input signals. in automatic mode, the system preserves the maximum possible bandwidth for good cvbs sources (since they can successfully be combed) as well as for luma components of yprpb and yc sources, since they need not be combed. for poor quality signals, the system selects from a set of proprietary shaping filter responses that complements comb filter operation in order to reduce visual artifacts. the decisions of the control logic are shown in figure 10. ysfm[4:0] y shaping filter mode, address 0x17 [4:0] the y shaping filter mode bits allow the user to select from a wide range of low-pass and notch filters. when switched in automatic mode, the filter is selected based on other register selections, for example, detected video standard, as well as properties extracted from the incoming video itself, for example, quality, time base stability. the automatic selection always picks the widest possible bandwidth for the video input encountered. ? if the ysfm settings specify a filter (i.e., ysfm is set to values other than 00000 or 00001), the chosen filter is applied to all video, regardless of its quality. ? in automatic selection mode, the notch filters are only used for bad quality video signals. for all other video signals, wideband filters are used. wysfmovr wideband y shap ing filter override, address 0x18,[7] setting the wysfmovr bit enables the use of the wysfm[4:0] settings for good quality video signals. for more information, refer to the general discussion of the luma shaping filters in the y shaping filter section and the flowchart shown in figure 10. when wysfmovr is 0, the shaping filter for good quality video signals is selected automatically. setting wysfmovr to 1 (default) enables manual override via wysfm[4:0].
ADV7181b rev. 0 | page 27 of 96 04984-0-011 auto select luma shaping filter to complement comb set ysfm ysfm in auto mode? 00000 or 00001 video quality bad good select wideband filter as per wysfm[4:0] select automatic wideband filter wysfmovr 1 0 use ysfm selected filter regardless for good and bad video yes no figure 10. ysfm and wysfm control flowchart table 28. ysfm function ysfm[4:0] description 0'0000 automatic selection including a wide notch response (pal/ntsc/secam) 0'0001 (default) automatic selection including a narrow notch response (pal/ntsc/secam) 0'0010 svhs 1 0'0011 svhs 2 0'0100 svhs 3 0'0101 svhs 4 0'0110 svhs 5 0'0111 svhs 6 0'1000 svhs 7 0'1001 svhs 8 0'1010 svhs 9 0'1011 svhs 10 0'1100 svhs 11 0'1101 svhs 12 0'1110 svhs 13 0'1111 svhs 14 1'0000 svhs 15 1'0001 svhs 16 1'0010 svhs 17 1'0011 svhs 18 (ccir 601) 1'0100 pal nn 1 1'0101 pal nn 2 1'0110 pal nn 3 1'0111 pal wn 1 1'1000 pal wn 2 1'1001 ntsc nn 1 1'1010 ntsc nn 2 1'1011 ntsc nn 3 1'1100 ntsc wn 1 1'1101 ntsc wn 2 1'1110 ntsc wn 3 1'1111 reserved wysfm[4:0] wide band y shaping filter mode, address 0x18 [4:0] the wysfm[4:0] bits allow the user to manually select a shaping filter for good quality video signals, for example, cvbs with stable time base, luma component of yprpb, luma component of yc. the wysfm bits are only active if the wysfmovr bit is set to 1. see the general discussion of the shaping filter settings in the y shaping filter section. table 29. wysfm function wysfm[4:0] description 0'0000 do not use 0'0001 do not use 0'0010 svhs 1 0'0011 svhs 2 0'0100 svhs 3 0'0101 svhs 4 0'0110 svhs 5 0'0111 svhs 6 0'1000 svhs 7 0'1001 svhs 8 0'1010 svhs 9 0'1011 svhs 10 0'1100 svhs 11 0'1101 svhs 12 0'1110 svhs 13 0'1111 svhs 14 1'0000 svhs 15 1'0001 svhs 16 1'0010 svhs 17 1'0011 (default) svhs 18 (ccir 601) 1'0100C11111 do not use
ADV7181b rev. 0 | page 28 of 96 0 ?10 ?20 ?30 ?40 ?50 ?60 ?70 010 8 6 4 212 04984-0-012 frequency (mhz) v740a combined y antialias, s-vhs low-pass filters, y resample amplitude (db) figure 11. y s-vhs combined responses the filter plots in figure 11 show the s-vhs 1 (narrowest) to s-vhs 18 (widest) shaping filter settings. figure 13 shows the pal notch filter responses. the ntsc-compatible notches are shown in figure 14. 0 ?20 ?40 ?60 ?80 ?100 ?120 010 8 6 4 212 04984-0-013 frequency (mhz) amplitude (db) v740a combined y antialias, ccir mode shaping filter, y resample figure 12.y s-vhs 18 extra wideband filter (ccir 601 compliant) 0 ?10 ?20 ?30 ?40 ?50 ?60 ?70 010 8 6 4 212 04984-0-014 frequency (mhz) v740a combined y antialias, pal notch filters, y resample amplitude (db) figure 13.y s-vhs 18 extra wideband filter (ccir 601 compliant) 0 ?10 ?20 ?30 ?40 ?50 ?60 ?70 010 8 6 4 212 04984-0-015 frequency (mhz) v740a combined y antialias, ntsc notch filters, y resample amplitude (db) figure 14. y s-vhs 18 extra wideband filter (601) chroma filter data from the digital fine clamp block is processed by three sets of filters. note that the data format at this point is cvbs for cvbs inputs, chroma only for y/c, or u/v interleaved for yprpb input formats. ? chroma antialias filter (caa). the ADV7181b over- samples the cvbs by a factor of 2 and the chroma/prpb by a factor of 4. a decimating filter (caa) is used to preserve the active video band and to remove any out-of- band components. the caa filter has a fixed response. ? chroma shaping filters (csh). the shaping filter block (csh) can be programmed to perform a variety of low- pass responses. it can be used to selectively reduce the bandwidth of the chroma signal for scaling or compression. ? digital resampling filter. this block is used to allow dynamic resampling of the video signal to alter parameters such as the time base of a line of video. fundamentally, the resampler is a set of low-pass filters. the actual response is chosen by the system without user intervention. the plots in figure 15 show the overall response of all filters together.
ADV7181b rev. 0 | page 29 of 96 csfm[2:0] c shaping filter mode, address 0x17 [7] the c shaping filter mode bits allow the user to select from a range of low-pass filters for the chrominance signal. when switched in automatic mode, the widest filter is selected based on the video standard/format and user choice (see settings 000 and 001 in table 30). table 30. csfm function csfm[2:0] description 000 (default) autoselect 1.5 mhz bandwidth 001 autoselect 2.17 mhz bandwidth 010 sh1 011 sh2 100 sh3 101 sh4 110 sh5 111 wideband mode 0 ?10 ?20 ?30 ?40 ?50 ?60 05 4 3 2 16 04984-0-016 frequency (mhz) v740a combined c antialias, c shaping filter, c resampler attenuation (db) figure 15. chroma shaping filter responses figure 15 shows the responses of sh1 (narrowest) to sh5 (widest) in addition to the wideband mode (in red). gain operation the gain control within the ADV7181b is done on a purely digital basis. the input adcs support a 9-bit range, mapped into a 1.6 v analog voltage range. gain correction takes place after the digitization in the form of a digital multiplier. advantages of this architecture over the commonly used pga (programmable gain amplifier) before the adc include the fact that the gain is now completely independent of supply, temperature, and process variations. as shown in figure 16, the ADV7181b can decode a video signal as long as it fits into the adc window. the components to this are the amplitude of the input signal and the dc level it resides on. the dc level is set by the clamping circuitry (see the clamp operation section). if the amplitude of the analog video signal is too high, clipping may occur, resulting in visual artifacts. the analog input range of the adc, together with the clamp level, determines the maximum supported amplitude of the video signal. the minimum supported amplitude of the input video is determined by the ADV7181bs ability to retrieve horizontal and vertical timing and to lock to the color burst, if present. there are separate gain control units for luma and chroma data. both can operate independently of each other. the chroma unit, however, can also take its gain value from the luma path. the possible agc modes are summarized in table 31. it is possible to freeze the automatic gain control loops. this causes the loops to stop updating and the agc determined gain at the time of the freeze to stay active until the loop is either unfrozen or the gain mode of operation is changed. the currently active gain from any of the modes can be read back. refer to the description of the dual-function manual gain registers, lg[11:0] luma gain and cg[11:0] chroma gain, in the luma gain and the chroma gain sections. 04984-0-017 analog voltage range supported by adc (1.6v range for ADV7181b) data pre- processor (dpp) adc sdp (gain selection only) maximum voltage minimum voltage clamp level gain control figure 16. gain control overview
ADV7181b rev. 0 | page 30 of 96 table 31. agc modes input video type luma gain chroma gain any manual gain luma. manual gain chroma. dependent on color burst amplitude. dependent on horizontal sync depth. taken from luma path. dependent on color burst amplitude. cvbs peak white. taken from luma path. dependent on color burst amplitude. dependent on horizontal sync depth. taken from luma path. dependent on color burst amplitude. y/c peak white. taken from luma path. yprpb dependent on horizontal sync depth. taken from luma path. luma gain lagc[2:0] luma automatic gain control, address 0x30 [7:0] the luma automatic gain control mode bits select the mode of operation for the gain control in the luma path. there are adi internal parameters to customize the peak white gain control. contact adi for more information. table 32. lagc function lagc[2:0] description 000 manual fixed gain (use lmg[11:0]). 001 agc (blank level to sync tip). no override through peak white. 010(default) agc (blank level to sync tip). automatic override through peak white. 011 reserved. 100 reserved. 101 reserved. 110 reserved. 111 freeze gain. lagt[1:0] luma automatic gain timing, address 0x2f [7:6] the luma automatic gain timing register allows the user to influence the tracking speed of the luminance automatic gain control. note that this register only has an effect if the lagc[2:0] register is set to 001, 010, 011, or 100 (automatic gain control modes). if peak white agc is enabled and active (see the status_1[7:0] address 0x10 [7:0] section), the actual gain update speed is dictated by the peak white agc loop and, as a result, the lagt settings have no effect. as soon as the part leaves peak white agc, lagt becomes relevant again. the update speed for the peak white algorithm can be customized by the use of internal parameters. contact adi for more information. table 33. lagt function lagt[1:0] description 00 slow (tc = 2 sec) 01 medium (tc = 1 sec) 10 fast (tc = 0.2 sec) 11 (default) adaptive lg[11:0] luma gain, address 0x2f [3:0]; address 0x30 [7:0]; lmg[11:0] luma manual gain, address 0x2f [3:0]; address 0x30 [7:0] luma gain [11:0] is a dual-function register. if written to, a desired manual luma gain can be programmed. this gain becomes active if the lagc[2:0] mode is switched to manual fixed gain. equation 1 shows how to calculate a desired gain. if read back, this register returns the current gain value. depending on the setting in the lagc[2:0] bits, this is one of the following values: ? luma manual gain value (lagc[2:0] set to luma manual gain mode) ? luma automatic gain value (lagc[2:0] set to any of the automatic modes) table 34. lg/lmg function lg[11:0]/lmg[11:0] read/write description lmg[11:0] = x write manual gain for luma path. lg[11:0] read actually used gain. ( ) 2 ... 0 2048 4095 0 _ = < = lg gain luma (1)
ADV7181b rev. 0 | page 31 of 96 for example, program the ADV7181b into manual fixed gain mode with a desired gain of 0.89. 1. use equation 1 to convert the gain: 0.89 2048 = 1822.72 2. truncate to integer value: 1822.72 = 1822 3. convert to hexadecimal: 1822d = 0x71e 4. split into two registers and program: luma gain control 1 [3:0] = 0x7 luma gain control 2 [7:0] = 0x1e 5. enable manual fixed gain mode: set lagc[2:0] to 000 betacam enable betacam levels, address 0x01 [5] if yprpb data is routed through the ADV7181b, the automatic gain control modes can target different video input levels, as outlined in table 41. note that the betacam bit is valid only if the input mode is yprpb (component). the betacam bit basically sets the target value for agc operation. a review of the following sections is useful: ? setadc_sw_man_en, manual input muxing enable, address c4 [7] to find how component video (yprpb) can be routed through the ADV7181b. ? video standard selection to select the various standards, for example, with and without pedestal. the automatic gain control (agc) algorithms adjust the levels based on the setting of the betacam bit (see table 35.). table 35. betacam function betacam description 0 (default) assuming yprpb is selected as input format. selecting pal with pedestal selects mii. selecting pal without pedestal selects smpte. selecting ntsc with pedestal selects mii. selecting ntsc without pedestal selects smpte. 1 assuming yprpb is selected as input format. selecting pal with pedestal selects betacam. selecting pal without pedestal selects betacam variant. selecting ntsc with pedestal selects betacam. selecting ntsc without pedestal selects betacam variant. pw_upd peak white update, address 0x2b [0] the peak white and average video algorithms determine the gain based on measurements taken from the active video. the pw_upd bit determines the rate of gain change. lagc[2:0] must be set to the appropriate mode to enable the peak white or average video mode in the first place. for more information, refer to the lagc[2:0] luma automatic gain control, address 0x30 [7:0] section. setting pw_upd to 0 updates the gain once per video line. setting pw_upd to 1 (default) updates the gain once per field. chroma gain cagc[1:0] chroma automatic gain control, address 0x2c [1:0] the two bits of color automatic gain control mode select the basic mode of operation for automatic gain control in the chroma path. table 36. cagc function cagc[1:0] description 00 manual fixed gain (use cmg[11:0]). 01 use luma gain for chroma. 10 (default) automatic gain (based on color burst). 11 freeze chroma gain. cagt[1:0] chroma automatic gain timing, address 0x2d [7:6] the chroma automatic gain timing register allows the user to influence the tracking speed of the chroma automatic gain control. this register has an effect only if the cagc[1:0] register is set to 10 (automatic gain). table 37. cagt function cagt[1:0] description 00 slow (tc = 2 sec) 01 medium (tc = 1 sec) 10 fast (tc = 0.2 sec) 11 (default) adaptive table 38. betacam levels name betacam (mv) betacam variant (mv) smpte (mv) mii (mv) y range 0 to 714 (incl. 7.5% pedestal) 0 to 714 0 to 700 0 to 700 (incl. 7.5% pedestal) pb and pr range C467 to +467 C505 to +505 C350 to +350 C324 to +324 sync depth 286 286 300 300
ADV7181b rev. 0 | page 32 of 96 cg[11:0] chroma gain, address 0x2d [3:0]; address 0x2e [7:0] cmg[11:0] chroma manual gain, address 0x2d [3:0]; address 0x2e [7:0] chroma gain [11:0] is a dual-function register. if written to, a desired manual chroma gain can be programmed. this gain becomes active if the cagc[1:0] mode is switched to manual fixed gain. refer to equation 2 for calculating a desired gain. if read back, this register returns the current gain value. depending on the setting in the cagc[1:0] bits, this is either: ? chroma manual gain value (cagc[1:0] set to chroma manual gain mode). ? chroma automatic gain value (cagc[1:0] set to any of the automatic modes). table 39. cg/cmg function cg[11:0]/cmg[11:0] read/write description cmg[11:0] write manual gain for chroma path. cg[11:0] read currently active gain. () 4 ... 0 1024 4095 0 _ = < = cg gain chroma (2) for example, freezing the automatic gain loop and reading back the cg[11:0] register results in a value of 0x47a. 1. convert the readback value to decimal: 0x47a = 1146d 2. apply equation 2 to convert the readback value: 1146/1024 = 1.12 cke color kill enable, address 0x2b [6] the color kill enable bit allows the optional color kill function to be switched on or off. for qam-based video standards (pal and ntsc) as well as fm based systems (secam), the threshold for the color kill decision is selectable via the ckillthr[2:0] bits. if color kill is enabled, and if the color carrier of the incoming video signal is less than the threshold for 128 consecutive video lines, color processing is switched off (black and white output). to switch the color processing back on, another 128 consecutive lines with a color burst greater than the threshold are required. the color kill option only works for input signals with a modulated chroma part. for component input (yprpb), there is no color kill. setting cke to 0 disables color kill. setting cke to 1 (default) enables color kill. ckillthr[2:0] color kill threshold, address 0x3d [6:4] the ckillthr[2:0] bits allow the user to select a threshold for the color kill function. the threshold applies to only qam- based (ntsc and pal) or fm-modulated (secam) video standards. to enable the color kill function, the cke bit must be set. for settings 000, 001, 010, and 011, chroma demodulation inside the ADV7181b may not work satisfactorily for poor input video signals. table 40. ckillthr function description ckillthr[2:0] secam ntsc, pal 000 no color kill kill at < 0.5% 001 kill at < 5% kill at < 1.5% 010 kill at < 7% kill at < 2.5% 011 kill at < 8% kill at < 4.0% 100 (default) kill at < 9.5% kill at < 8.5% 101 kill at < 15% kill at < 16.0% 110 kill at < 32% kill at < 32.0% 111 reserved for adi internal use only. do not select. chroma transient improvement (cti) the signal bandwidth allocated for chroma is typically much smaller than that of luminance. in the past, this was a valid way to fit a color video signal into a given overall bandwidth because the human eye is less sensitive to chrominance than to luminance. the uneven bandwidth, however, ma y lead to visual artifacts in sharp color transitions. at the border of two bars of color, both components (luma and chroma) change at the same time (see figure 17). due to the higher bandwidth, the signal transition of the luma component is usually a lot sharper than that of the chroma component. the color edge is not sharp but blurred, in the worst case, over several pixels. 04984-0-018 luma signal demodulated chroma signal luma signal with a transition, accompanied by a chroma transition original, "slow" chroma transition prior to cti sharpened chroma transition at the output of cti figure 17. cti luma/chroma transition
ADV7181b rev. 0 | page 33 of 96 the chroma transient improvement block examines the input video data. it detects transitions of chroma, and can be programmed to steepen the chroma edges in an attempt to artificially restore lost color bandwidth. the cti block, however, operates only on edges above a certain threshold to ensure that noise is not emphasized. care has also been taken to ensure that edge ringing and undesirable saturation or hue distortion are avoided. chroma transient improvements are needed primarily for signals that experienced severe chroma bandwidth limitations. for those types of signals, it is strongly recommended to enable the cti block via cti_en. cti_en chroma transien t improvement enable, address 0x4d [0] setting cti_en to 0 disables the cti block. setting cti_en to 1 (default) enables the cti block. cti_ab_en chroma transient improvement lpha blend enable, address 0x4d [1] the cti_ab_en bit enables an alpha-blend function within the cti block. if set to 1, the alpha blender mixes the transient improved chroma with the original signal. the sharpness of the alpha blending can be configured via the cti_ab[1:0] bits. for the alpha blender to be active, the cti block must be enabled via the cti_en bit. setting cti_ab_en to 0 disables the cti alpha blender. setting cti_ab_en to 1 (default) enables the cti alpha-blend mixing function. cti_ab[1:0] chroma transient improvement alpha blend, address 0x4d [3:2] the cti_ab[1:0] controls the behavior of alpha blend circuitry that mixes the sharpened chroma signal with the original one. it thereby controls the visual impact of cti on the output data. for cti_ab[1:0] to become active, the cti block must be enabled via the cti_en bit, and the alpha blender must be switched on via cti_ab_en. sharp blending maximizes the effect of cti on the picture, but may also increase the visual impact of small amplitude, high frequency chroma noise. table 41. cti_ab function cti_ab[1:0] description 00 sharpest mixing between sharpened and original chroma signal. 01 sharp mixing. 10 smooth mixing. 11 (default) smoothest alpha blend function. cti_c_th[7:0] cti chroma threshold, address 0x4e [7:0] the cti_c_th[7:0] value is an unsigned, 8-bit number speci- fying how big the amplitude step in a chroma transition has to be in order to be steepened by the cti block. programming a small value into this register causes even smaller edges to be steepened by the cti block. making cti_c_th[7:0] a large value causes the block to improve large transitions only. the default value for cti_c_th[7:0] is 0x08, indicating the threshold for the chroma edges prior to cti. digital noise reduction (dnr) digital noise reduction is based on the assumption that high frequency signals with low amplitude are probably noise and that their removal, therefore, improves picture quality. dnr_en digital noise reduction enable, address 0x4d [5] the dnr_en bit enables the dnr block or bypasses it. setting dnr_en to 0 bypasses dnr (disables it). setting dnr_en to 1 (default) enables digital noise reduction on the luma data. dnr_th[7:0] dnr noise threshold, address 0x50 [7:0] the dnr_th[7:0] value is an unsigned 8-bit number used to determine the maximum edge that is interpreted as noise and therefore blanked from the luma data. programming a large value into dnr_th[7:0] causes the dnr block to interpret even large transients as noise and remove them. the effect on the video data is, therefore, more visible. programming a small value causes only small transients to be seen as noise and to be removed. the recommended dnr_th[7:0] setting for a/v inputs is 0x04, and the recommended dnr_th[7:0] setting for tuner inputs is 0x0a. the default value for dnr_th[7:0] is 0x08, indicating the threshold for maximum luma edges to be interpreted as noise.
ADV7181b rev. 0 | page 34 of 96 comb filters the comb filters of the ADV7181b have been greatly improved to automatically handle video of all types, standards, and levels of quality. the ntsc and pal configuration registers allow the user to customize comb filter operation, depending on which video standard is detected (by autodetection) or selected (by manual programming). in addition to the bits listed in this section, there are some further adi internal controls; contact adi for more information. ntsc comb filter settings used for ntsc-m/j cvbs inputs. nsfsel[1:0] split filter selection ntsc, address 0x19 [3:2] the nsfsel[1:0] control selects how much of the overall signal bandwidth is fed to the combs. a narrow split filter selection gives better performance on diagonal lines, but leaves more dot crawl in the final output image. the opposite is true for selecting a wide bandwidth split filter. table 42. nsfsel function nsfsel[1:0] description 00 (default) narrow 01 medium 10 medium 11 wide ctapsn[1:0] chroma comb taps ntsc, address 0x38 [7:6] table 43. ctapsn function ctapsn[1:0] description 00 do not use. 01 ntsc chroma comb adapts 3 lines (3 taps) to 2 lines (2 taps). 10 (default) ntsc chroma comb adapts 5 lines (5 taps) to 3 lines (3 taps). 11 ntsc chroma comb adapts 5 lines (5 taps) to 4 lines (4 taps). ccmn[2:0] chroma comb mode ntsc, address 0x38 [5:3] table 44. ccmn function ccmn[2:0] description configuration adaptive 3-line chroma comb for ctapsn = 01. adaptive 4-line chroma comb for ctapsn = 10. 0xx (default) adaptive comb mode. adaptive 5-line chroma comb for ctapsn = 11. 100 disable chroma comb. fixed 2-line chroma comb for ctapsn = 01. fixed 3-line chroma comb for ctapsn = 10. 101 fixed chroma comb (top lines of line memory). fixed 4-line chroma comb for ctapsn = 11. fixed 3-line chroma comb for ctapsn = 01. fixed 4-line chroma comb for ctapsn = 10. 110 fixed chroma comb (all lines of line memory). fixed 5-line chroma comb for ctapsn = 11. fixed 2-line chroma comb for ctapsn = 01. fixed 3-line chroma comb for ctapsn = 10. 111 fixed chroma comb (bottom lines of line memory). fixed 4-line chroma comb for ctapsn = 11. ycmn[2:0] luma comb mode ntsc, address 0x38 [2:0] table 45. ycmn function ycmn[2:0] description configuration 0xx (default) adaptive comb mode. ad aptive 3-line (3 taps) luma comb. 100 disable luma comb. use lo w-pass/notch filter; see the y shaping filter section. 101 fixed luma comb (top lines of line memory). fixed 2-line (2 taps) luma comb. 110 fixed luma comb (all lines of line memo ry). fixed 3-line (3 taps) luma comb. 111 fixed luma comb (bottom lines of line me mory). fixed 2-line (2 taps) luma comb.
ADV7181b rev. 0 | page 35 of 96 pal comb filter settings used for pal-b/g/h/i/d, pal-m, pal-c ombinational n, pal-60, and ntsc443 cvbs inputs. psfsel[1:0] split filter selection pal, address 0x19 [1:0] the nsfsel[1:0] control selects how much of the overall signal bandwidth is fed to the combs. a wide split filter selection eliminates dot crawl, but shows imperfections on diagonal lines. the opposite is true for selecting a narrow bandwidth split filter. table 46. psfsel function psfsel[1:0] description 00 narrow 01 (default) medium 10 wide 11 widest ctapsp[1:0] chroma comb taps pal, address 0x39 [7:6] table 47. ctapsp function ctapsp[1:0] description 00 do not use. 01 pal chroma comb adapts 5 lines (3 taps) to 3 lines (2 taps); cancels cross luma only. 10 pal chroma comb adapts 5 lines (5 taps) to 3 lines (3 taps); cancels cross luma and hue error less well. 11 (default) pal chroma comb adapts 5 lines (5 taps) to 4 lines (4 taps); cancels cross luma and hue error well. ccmp[2:0] chroma comb mode pal, address 0x39 [5:3] table 48. ccmp function ccmp[2:0] description configuration adaptive 3-line chroma comb for ctapsp = 01. adaptive 4-line chroma comb for ctapsp = 10. 0xx (default) adaptive comb mode. adaptive 5-line chroma comb for ctapsp = 11. 100 disable chroma comb. fixed 2-line chroma comb for ctapsp = 01. fixed 3-line chroma comb for ctapsp = 10. 101 fixed chroma comb (top lines of line memory). fixed 4-line chroma comb for ctapsp = 11. fixed 3-line chroma comb for ctapsp = 01. fixed 4-line chroma comb for ctapsp = 10. 110 fixed chroma comb (all lines of line memory). fixed 5-line chroma comb for ctapsp = 11. fixed 2-line chroma comb for ctapsp = 01. fixed 3-line chroma comb for ctapsp = 10. 111 fixed chroma comb (bottom lines of line memory). fixed 4-line chroma comb for ctapsp = 11. ycmp[2:0] luma comb mode pal, address 0x39 [2:0] table 49. ycmp function ycmp[2:0] description configuration 0xx (default) adaptive comb mode. adaptive 5 lines (3 taps) luma comb. 100 disable luma comb. use lo w-pass/notch filter; see the y shaping filter section. 101 fixed luma comb (top lines of line memory). fixed 3 lines (2 taps) luma comb. 110 fixed luma comb (all lines of line memo ry). fixed 5 lines (3 taps) luma comb. 111 fixed luma comb (bottom lines of line me mory). fixed 3 lines (2 taps) luma comb.
ADV7181b rev. 0 | page 36 of 96 av code insertion and controls this section describes the i 2 c based controls that affect ? insertion of av codes into the data stream. ? data blanking during the vertical blank interval (vbi). ? the range of data values permitted in the output data stream. ? the relative delay of luma versus chroma signals. note that some of the decoded vbi data is being inserted during the horizontal blanking interval. see the gemstar data recovery section for more information. bt656-4 itu standard bt-r.656-4 enable, address 0x04 [7] the itu has changed the position for toggling of the v bit within the sav eav codes for ntsc between revisions 3 and 4. the bt656-4 standard bit allows the user to select an output mode that is compliant with either the previous or the new standard. for further information, review the standard at http://www.itu.int. note that the standard change affects ntsc only and has no bearing on pal. when bt656-4 is 0 (default), the bt656-3 specification is used. the v bit goes low at eav of lines 10 and 273. when bt656-4 is 1, the bt656-4 specification is used. the v bit goes low at eav of lines 20 and 283. sd_dup_av duplicate av codes, address 0x03 [0] depending on the output interface width, it may be necessary to duplicate the av codes from the luma path into the chroma path. in an 8-bit-wide output interface (cb/y/cr/y interleaved data), the av codes are defined as ff/00/00/av, with av being the transmitted word that contains information about h/v/f. in this output interface mode, the following assignment takes place: cb = ff, y = 00, cr = 00, and y = av. in a 16-bit output interface where y and cr/cb are delivered via separate data buses, the av code is over the whole 16 bits. the sd_dup_av bit allows the user to replicate the av codes on both busses, so the full av sequence can be found on the y bus as well as on the cr/cb bus. see figure 18. when sd_dup_av is 0 (default), the av codes are in single fashion (to suit 8-bit interleaved data output). when sd_dup_av is 1, the av codes are duplicated (for 16-bit interfaces). vbi_en vertical blanking interval data enable, address 0x03 [7] the vbi enable bit allows data such as intercast and closed caption data to be passed through the luma channel of the decoder with a minimal amount of filtering. all data for lines 1 to 21 is passed through and available at the output port. the ADV7181b does not blank the luma data, and automatically switches all filters along the luma data path into their widest bandwidth. for active video, the filter settings for ysh and ypk are restored. refer to the bl_c_vbi blank chroma during vbi section for information on the chroma path. when vbi_en is 0 (default), all video lines are filtered/scaled. when vbi_en is 1, only the active video region is filtered/scaled. 04984-0-019 y data bus 00 av y ff 00 00 av y ff cr/cb data bu s 00 00 av cb ff 00 cb av code section av code section ff 00 00 av cb av code section cb/y/cr/y interleaved 8-bit interface 16-bit interface 16-bit interface sd_dup_av = 1 sd_dup_av = 0 figure 18. av code duplication control
ADV7181b rev. 0 | page 37 of 96 bl_c_vbi blank chroma during vbi, address 0x04 [2] setting bl_c_vbi high, the cr and cb values of all vbi lines are blanked. this is done so any data that may arrive during vbi is not decoded as color and output through cr and cb. as a result, it is possible to send vbi lines into the decoder, then output them through an encoder again, undistorted. without this blanking, any wrongly decoded color is encoded by the video encoder; therefore, the vbi lines are distorted. setting bl_c_vbi to 0 decodes and outputs color during vbi. setting bl_c_vbi to 1 (default) blanks cr and cb values during vbi. range range selection, address 0x04 [0] av codes (as per itu-r bt-656, formerly known as ccir-656) consist of a fixed header made up of 0xff and 0x00 values. these two values are reserved and therefore are not to be used for active video. additionally, the itu specifies that the nominal range for video should be restricted to values between 16 and 235 for luma and 16 to 240 for chroma. the range bit allows the user to limit the range of values output by the ADV7181b to the recommended value range. in any case, it ensures that the reserved values of 255d (0xff) and 00d (0x00) are not presented on the output pins unless they are part of an av code header. table 50. range function range description 0 16 y 235 16 c/p 240 1 (default) 1 y 254 1 c/p 254 auto_pdc_en automatic programmed delay control, address 0x27 [6] enabling the auto_pdc_en function activates a function within the ADV7181b that automatically programs the lta[1:0] and cta[2:0] to have the chroma and luma data match delays for all modes of operation. if set, manual registers lta[1:0] and cta[2:0] are not used. if the automatic mode is disabled (via setting the auto_pdc_en bit to 0), the values programmed into lta[1:0] and cta[2:0] registers become active. when auto_pdc_en is 0, the ADV7181 uses the lta[1:0] and cta[2:0] values for delaying luma and chroma samples. refer to the lta[1:0] luma timing adjust, address 0x27 [1:0] and the cta[2:0] chroma timing adjust, address 0x27 [5:3] sections. when auto_pdc_en is 1 (default), the ADV7181 automatically determines the lta and cta values to have luma and chroma aligned at the output. lta[1:0] luma timing adjust, address 0x27 [1:0] the luma timing adjust register allows the user to specify a timing difference between chroma and luma samples. note that there is a certain functionality overlap with the cta[2:0] register. for manual programming, use the following defaults: ? cvbs input lta[1:0] = 00. ? yc input lta[1:0] = 01. ? yprpb input lta[1:0] =01. table 51. lta function lta[1:0] description 00 (default) no delay. 01 luma 1 clk (37 ns) delayed. 10 luma 2clk (74 ns) early. 11 luma 1 clk (37 ns) early. cta[2:0] chroma timing adjust, address 0x27 [5:3] the chroma timing adjust register allows the user to specify a timing difference between chroma and luma samples. this may be used to compensate for external filter group delay differences in the luma versus chroma path, and to allow a different number of pipeline delays while processing the video downstream. review this functionality together with the lta[1:0] register. the chroma can be delayed/advanced only in chroma pixel steps. one chroma pixel step is equal to two luma pixels. the programmable delay occurs after demodulation, where one can no longer delay by luma pixel steps. for manual programming, use the following defaults: ? cvbs input cta[2:0] = 011. ? yc input cta[2:0] = 101. ? yprpb input cta[2:0] =110. table 52. cta function cta[2:0] description 000 not used. 001 chroma + 2 chroma pixel (early). 010 chroma + 1 chroma pixel (early). 011 (default) no delay. 100 chroma C 1 chroma pixel (late). 101 chroma C 2 chroma pixel (late). 110 chroma C 3 chroma pixel (late). 111 not used.
ADV7181b rev. 0 | page 38 of 96 synchronization output signals hs configuration the following controls allow the user to configure the behavior of the hs output pin only: ? beginning of hs signal via hsb[10:0] ? end of hs signal via hse[10:0] ? polarity of hs using phs the hs begin and hs end registers allow the user to freely position the hs output (pin) within the video line. the values in hsb[10:0] and hse[10:0] are measured in pixel units from the falling edge of hs. using both values, the user can program both the position and length of the hs output signal. hsb[10:0] hs begin, address 0x34 [6:4], address 0x35 [7:0] the position of this edge is controlled by placing a binary number into hsb[10:0]. the number applied offsets the edge with respect to an internal counter that is reset to 0 immediately after eav code ff,00,00,xy (see figure 19). hsb is set to 00000000010b, which is 2 llc1 clock cycles from count[0]. the default value of hsb[10:0] is 0x002, indicating that the hs pulse starts 2 pixels after the falling edge of hs. hse[10:0] hs end, address 0x34 [2:0], address 0x36 [7:0] the position of this edge is controlled by placing a binary number into hse[10:0]. the number applied offsets the edge with respect to an internal counter that is reset to 0 immediately after eav code ff,00,00,xy (see figure 19). hse is set to 00000000000b, which is 0 llc1 clock cycles from count[0]. the default value of hse[10:0] is 000, indicating that the hs pulse ends 0 pixels after falling edge of hs. for example: 1. to shift the hs toward active video by 20 llc1s, add 20 llc1s to both hsb and hse, i.e., hsb[10:0] = [00000010110], hse[10:0] = [00000010100]. 2. to shift the hs away from active video by 20 llc1s, add 1696 llc1s to both hsb and hse (for ntsc), that is, hsb[10:0] = [11010100010], hse[10:0] = [11010100000]. 1696 is derived from the ntsc total number of pixels = 1716. to move 20 llc1s away from active video is equal to subtracting 20 from 1716 and adding the result in binary to both hsb[10:0] and hse[10:0]. phs polarity hs, address 0x37 [7] the polarity of the hs pin can be inverted using the phs bit. when phs is 0 (default), hs is active high. when phs is 1, hs is active low. table 53. hs timing parameters (see figure 19) characteristic standard hs begin adjust (hsb[10:0]) (default) hs end adjust (hse[10:0])(default) hs to active video (llc1 clock cycles) (c in figure 19) (default) active video samples/line (d in figure 19) total llc1 clock cycles (e in figure 19) ntsc 00000000010b 00000000000b 272 720y + 720c = 1440 1716 ntsc square pixel 00000000010b 00000000000b 276 640y + 640c = 1280 1560 pal 00000000010b 00000000000b 284 720y + 720c = 1440 1728 04984-0-020 e active video llc1 pixel bus hs cr y ff 00 00 xy 80 10 80 10 80 10 ff 00 00 xy cb y cr y cb y cr 4 llc1 d hsb[10:0] hse[10:0] c e d sav active video h blank eav figure 19. hs timing
ADV7181b rev. 0 | page 39 of 96 vs and field configuration the following controls allow the user to configure the behavior of the vs and field output pins, as well as the generation of embedded av codes: ? adv encoder-compatible signals via newavmode ? pvs, pf ? hvstim ? vsbho, vsbhe ? vseho, vsehe ? for ntsc control: o nvbegdelo, nvbegdele, nvbegsign, nvbeg[4:0] o nvenddelo, nvendde le, nvendsign, nvend[4:0] o nftogdelo, nftogdele, nftogsign, nftog[4:0] ? for pal control: o pvbegdelo, pvbegdele, pvbegsign, pvbeg[4:0] o pvenddelo, pvenddele, pvendsign, pvend[4:0] o pftogdelo, pftogdele, pftogsign, pftog[4:0] newavmode new av mode, address 0x31 [4] when newavmode is 0, eav/sav codes are generated to suit adi encoders. no adjustments are possible. setting newavmode to 1 (default) enables the manual position of the vsync, field, and av codes using registers 0x34 to 0x37 and 0xe5 to 0xea. default register settings are ccir656 compliant; see figure 20 for ntsc and figure 25 for pal. for recommended manual user settings, see table 54 and figure 21 for ntsc; see table 55 and figure 26 for pal. hvstim horizontal vs timing, address 0x31 [3] the hvstim bit allows the user to select where the vs signal is asserted within a line of video. some interface circuitry may require vs to go low while hs is low. when hvstim is 0 (default), the start of the line is relative to hse. when hvstim is 1, the start of the line is relative to hsb. vsbho vs begin horizontal posi tion odd, address 0x32 [7] the vsbho and vsbhe bits select the position within a line at which the vs pin (not the bit in the av code) becomes active. some follow-on chips require the vs pin to only change state when hs is high/low. when vsbho is 0 (default), the vs pin goes high at the middle of a line of video (odd field). when vsbho is 1, the vs pin changes state at the start of a line (odd field). vsbhe vs begin horizontal position even, address 0x32 [6] the vsbho and vsbhe bits select the position within a line at which the vs pin (not the bit in the av code) becomes active. some follow-on chips require the vs pin to only change state when hs is high/low. when vsbhe is 0 (default), the vs pin goes high at the middle of a line of video (even field). when vsbhe is 1, the vs pin changes state at the start of a line (even field). vseho vs end horizontal position odd, address 0x33 [7] the vseho and vsehe bits select the position within a line at which the vs pin (not the bit in the av code) becomes active. some follow-on chips require the vs pin to only change state when hs is high/low. when vseho is 0 (default), the vs pin goes low (inactive) at the middle of a line of video (odd field). when vseho is 1, the vs pin changes state at the start of a line (odd field). vsehe vs end horizontal posi tion even, address 0x33 [6] the vseho and vsehe bits select the position within a line at which the vs pin (not the bit in the av code) becomes active. some follow-on chips require the vs pin to only change state when hs is high/low. when vsehe is 0 (default), the vs pin goes low (inactive) at the middle of a line of video (even field). when vsehe is 1, the vs pin changes state at the start of a line (even field). pvs polarity vs, address 0x37 [5] the polarity of the vs pin can be inverted using the pvs bit. when pvs is 0 (default), vs is active high. when pvs is 1, vs is active low.
ADV7181b rev. 0 | page 40 of 96 pf polarity field, address 0x37 [3] the polarity of the field pin can be inverted using the pf bit. field pin can be inverted using the pf bit. when pf is 0 (default), field is active high. when pf is 1, field is active low. 04984-0-021 output video field 1 field 2 h v f output video h v f 525 1 2 3 4 5 6 7 8 9 10 11 12 13 19 20 21 22 nvbeg[4:0] = 0x5 nvbeg[4:0] = 0x5 nvend[4:0] = 0x4 nvend[4:0] = 0x4 nftog[4:0] = 0x3 nftog[4:0] = 0x3 *bt.656-4 reg 0x04, bit 7 = 1 *bt.656-4 reg 0x04, bit 7 = 1 *applies if nemavmode = 0: must be manually shifted if newavmode = 1. 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 283 284 285 figure 20. ntsc default (bt.656). the polarity of h, v, and f is embedded in the data. nvbeg[4:0] = 0x0 nvend[4:0] = 0x3 04984-0-022 field 1 output video field output hs output nftog[4:0] = 0x5 vs output 525 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 21 22 field 2 output video field output hs output vs output 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 284 285 nvbeg[4:0] = 0x0 nvend[4:0] = 0x3 nftog[4:0] = 0x5 figure 21. ntsc typical vsync/field positions using register writes in table 54
ADV7181b rev. 0 | page 41 of 96 table 54. recommended user settings for ntsc (see figure 21) register register name write 0x31 vsync field control 1 0x12 0x32 vsync field control 2 0x81 0x33 vsync field control 3 0x84 0x37 polarity 0x29 0xe5 ntsv_v_bit_beg 0x0 0xe6 ntsc_v_bit_end 0x3 0xe7 ntsc_f_bit_tog 0x85 04984-0-023 advance begin of vsync by nvbeg[4:0] delay begin of vsync by nvbeg[4:0] vsync begin nvbegsign odd field? 0 1 no yes nvbegdelo vsbho additional delay by 1 line advance by 0.5 line 1 0 1 0 nvbegdele vsbhe additional delay by 1 line advance by 0.5 line 1 0 1 0 not valid for user programming figure 22. ntsc vsync begin nvbegdelo ntsc vsync begin delay on odd field, address 0xe5 [7] when nvbegdelo is 0 (default), there is no delay. setting nvbegdelo to 1 delays vsync going high on an odd field by a line relative to nvbeg. nvbegdele ntsc vsync begin delay on even field, address 0xe5 [6] when nvbegdele is 0 (default), there is no delay. setting nvbegdele to 1 delays vsync going high on an even field by a line relative to nvbeg. nvbegsign ntsc vsync begin sign, address 0xe5 [5] setting nvbegsign to 0 delays the start of vsync. set for user manual programming. setting nvbegsign to 1 (default) advances the start of vsync. not recommended for user programming. nvbeg[4:0] ntsc vsync begin, address 0xe5 [4:0] the default value of nvbeg is 00101, indicating the ntsc vsync begin position. for all ntsc/pal vsync timing controls, both the v bit in the av code and the vsync on the vs pin are modified. 04984-0-024 advance end of vsync by nvend[4:0] delay end of vsync by nvend[4:0] vsync end nvendsign odd field? 0 1 no yes nvenddelo vseho additional delay by 1 line advance by 0.5 line 1 0 1 0 nvenddele vsehe additional delay by 1 line advance by 0.5 line 1 0 1 0 not valid for user programming figure 23. ntsc vsync end nvenddelo ntsc vsync en d delay on odd field, address 0xe6 [7] when nvenddelo is 0 (default), there is no delay. setting nvenddelo to 1 delays vsync from going low on an odd field by a line relative to nvend.
ADV7181b rev. 0 | page 42 of 96 nvenddele ntsc vsync end delay on even field, address 0xe6 [6] when nvenddele is set to 0 (default), there is no delay. setting nvenddele to 1 delays vsync from going low on an even field by a line relative to nvend. nvendsign ntsc vsync end sign, address 0xe6 [5] setting nvendsign to 0 (default) delays the end of vsync. set for user manual programming. setting nvendsign to 1 advances the end of vsync. not recommended for user programming. nvend ntsc[4:0] vsync end, address 0xe6 [4:0] the default value of nvend is 00100, indicating the ntsc vsync end position. for all ntsc/pal vsync timing controls, both the v bit in the av code and the vsync on the vs pin are modified. nftogdelo ntsc field toggle delay on odd field, address 0xe7 [7] when nftogdelo is 0 (default), there is no delay. setting nftogdelo to 1 delays the field toggle/transition on an odd field by a line relative to nftog. nftogdele ntsc field toggle delay on even field, address 0xe7 [6] when nftogdele is 0, there is no delay. setting nftogdele to 1 (default) delays the field toggle/ transition on an even field by a line relative to nftog. 04984-0-025 advance toggle of field by nftog[4:0] delay toggle of field by nftog[4:0] nftogsign odd field? 0 1 no yes nftogdele additional delay by 1 line 1 0 nftogdelo additional delay by 1 line 1 0 field toggle not valid for user programming figure 24. ntsc field toggle nftogsign ntsc field toggle sign, address 0xe7 [5] setting nftogsign to 0 delays the field transition. set for user manual programming. setting nftogsign to 1 (default) advances the field transition. not recommended for user programming. nftog[4:0] ntsc field toggle, address 0xe7 [4:0] the default value of nftog is 00011, indicating the ntsc field toggle position. for all ntsc/pal field timing controls, both the f bit in the av code and the field signal on the field/de pin are modified. table 55. recommended user settings for pal (see figure 26) register register name write 0x31 vsync field control 1 0x12 0x32 vsync field control 2 0x81 0x33 vsync field control 3 0x84 0x37 polarity 0x29 0xe8 pal_v_bit_beg 0x1 0xe9 pal_v_bit_end 0x4 0xea pal_f_bit_tog 0x6
ADV7181b rev. 0 | page 43 of 96 04984-0-026 field 1 output video h v f 622 623 624 625 1 2 3 4 5 6 7 8 9 10 22 23 24 pvbeg[4:0] = 0x5 pvend[4:0] = 0x4 pftog[4:0] = 0x3 field 2 output video h v f pvbeg[4:0] = 0x5 pvend[4:0] = 0x4 pftog[4:0] = 0x3 310 311 312 313 314 315 316 317 318 319 320 321 322 335 336 337 figure 25. pal default (bt.656). the polarity of h, v, and f is embedded in the data. 04984-0-027 field 1 622 623 624 625 123 45 678 91011 2324 310 311 312 313 314 315 316 317 318 319 320 321 322 323 336 337 pvbeg[4:0] = 0x1 pvend[4:0] = 0x4 pftog[4:0] = 0x6 field 2 output video field output hs output vs output output video field output hs output vs output pvbeg[4:0] = 0x1 pvend[4:0] = 0x4 pftog[4:0] = 0x6 figure 26. pal typical vsync/field positions using register writes in table 55
ADV7181b rev. 0 | page 44 of 96 04984-0-028 advance begin of vsync by pvbeg[4:0] delay begin of vsync by pvbeg[4:0] vsync begin pvbegsign odd field? 0 1 no yes pvbegdelo vsbho additional delay by 1 line advance by 0.5 line 1 0 1 0 pvbegdele vsbhe additional delay by 1 line advance by 0.5 line 1 0 1 0 not valid for user programming figure 27. pal vsync begin pvbegdelo pal vsync begi n delay on odd field, address 0xe8 [7] when pvbegdelo is 0 (default), there is no delay. setting pvbegdelo to 1 delays vsync going high on an odd field by a line relative to pvbeg. pvbegdele pal vsync begin delay on even field, address 0xe8 [6] when pvbegdele is 0, there is no delay. setting pvbegdele to 1 (default) delays vsync going high on an even field by a line relative to pvbeg. pvbegsign pal vsync begin sign, address 0xe8 [5] setting pvbegsign to 0 delays the beginning of vsync. set for user manual programming. setting pvbegsign to 1(default) advances the beginning of vsync. not recommended for user programming. pvbeg[4:0] pal vsync begin, address 0xe8 [4:0] the default value of pvbeg is 00101, indicating the pal vsync begin position. for all ntsc/pal vsync timing controls, both the v bit in the av code and the vsync on the vs pin are modified. 04984-0-029 advance end of vsync by pvend[4:0] delay end of vsync by pvend[4:0] vsync end pvendsign odd field? 0 1 no yes pvenddelo vseho additional delay by 1 line advance by 0.5 line 1 0 1 0 pvenddele vsehe additional delay by 1 line advance by 0.5 line 1 0 1 0 not valid for user programming figure 28. pal vsync end pvenddelo pal vsync end delay on odd field, address 0xe9,[7] when pvenddelo is 0 (default), there is no delay. setting pvenddelo to 1 delays vsync going low on an odd field by a line relative to pvend. pvenddele pal vsync end delay on even field, address 0xe9,[6] when pvenddele is 0 (default), there is no delay. setting pvenddele to 1 delays vsync going low on an even field by a line relative to pvend.
ADV7181b rev. 0 | page 45 of 96 pvendsign pal vsync end sign, address 0xe9 [5] setting pvendsign to 0 (default) delays the end of vsync. set for user manual programming. setting pvendsign to 1 advances the end of vsync. not recommended for user programming. pvend[4:0] pal vsync end, address 0xe9,[4:0] the default value of pvend is 10100, indicating the pal vsync end position. for all ntsc/pal vsync timing controls, both the v bit in the av code and the vsync on the vs pin are modified. pftogdelo pal field toggle delay on odd field, address 0xea [7] when pftogdelo is 0 (default), there is no delay. setting pftogdelo to 1 delays the f toggle/transition on an odd field by a line relative to pftog. pftogdele pal field toggle delay on even field, address 0xea [6] when pftogdele is 0, there is no delay. setting pftogdele to 1 (default) delays the f toggle/transition on an even field by a line relative to pftog. pftogsign pal field toggle sign, address 0xea [5] setting pftogsign to 0 delays the field transition. set for user manual programming. setting pftogsign to 1 (default) advances the field transition. not recommended for user programming. pftog pal field toggle, address 0xea [4:0] the default value of pftog is 00011, indicating the pal field toggle position. for all ntsc/pal field timing controls, the f bit in the av code and the field signal on the field/de pin are modified. 04984-0-030 advance toggle of field by ptog[4:0] delay toggle of field by pftog[4:0] pftogsign odd field? 0 1 no yes pftogdele additional delay by 1 line 1 0 pftogdelo additional delay by 1 line 1 0 field toggle not valid for user programming figure 29. pal f toggle sync processing the ADV7181b has two additional sync processing blocks that postprocess the raw synchronization information extracted from the digitized input video. if desired, the blocks can be disabled via the following two i 2 c bits. enhspll enable hsync processor, address 0x01 [6] the hsync processor is designed to filter incoming hsyncs that have been corrupted by noise, providing improved per- formance for video signals with stable time bases but poor snr. setting enhspll to 0 disables the hsync processor. setting enhspll to 1 (default) enables the hsync processor. envsproc enable vsync processor, address 0x01 [3] this block provides extra filtering of the detected vsyncs to give improved vertical lock. setting envsproc to 0 disables the vsync processor. setting envsproc to 1(default) enables the vsync processor.
ADV7181b rev. 0 | page 46 of 96 vbi data decode the following low data rate vbi signals can be decoded by the ADV7181b: ? wide screen signaling (wss) ? copy generation management systems (cgms) ? closed captioning (ccap) ? edtv ? gemstar 1- and 2-compatible data recovery the presence of any of the above signals is detected and, if applicable, a parity check is performed. the result of this testing is contained in a confidence bit in the vbi info[7:0] register. users are encouraged to first examine the vbi info register before reading the corresponding data registers. all vbi data decode bits are read-only. all vbi data registers are double-buffered with the field signals. this means that data is extracted from the video lines and appears in the appropriate i 2 c registers with the next field transition. they are then static until the next field. the user should start an i 2 c read sequence with vs by first examining the vbi info register. then, depending on what data was detected, the appropriate data registers should be read. the data registers are filled with decoded vbi data even if their corresponding detection bits are low; it is likely that bits within the decoded data stream are wrong. the closed captioning data (ccap) is available in the i 2 c registers, and is also inserted into the output video data stream during horizontal blanking. the gemstar-compatible data is not available in the i 2 c registers, and is inserted into the data stream only during horizontal blanking. wssd wide screen signaling detected, address 0x90 [0] logic 1 for this bit indicates that the data in the wss1 and wss2 registers is valid. the wssd bit goes high if the rising edge of the start bit is detected within a time window, and if the polarity of the parity bit matches the transmitted data. when wssd is 0, no wss is detected and confidence in the decoded data is low. when wssd is 1, wss is detected and confidence in the decoded data is high. ccapd closed caption detected, address 0x90 [1] logic 1 for this bit indicates that the data in the ccap1 and ccap2 registers is valid. the ccapd bit goes high if the rising edge of the start bit is detected within a time window, and if the polarity of the parity bit matches the transmitted data. when ccapd is 0, no ccap signals are detected and confidence in the decoded data is low. when ccapd is 1, the ccap sequence is detected and confidence in the decoded data is high. edtvd edtv sequence detected, address 0x90 [2] logic 1 for this bit indicates that the data in the edtv1, 2, 3 registers is valid. the edtvd bit goes high if the rising edge of the start bit is detected within a time window, and if the polarity of the parity bit matches the transmitted data. when edtvd is 0, no edtv sequence is detected. confidence in decoded data is low. when edtvd is 1, an edtv sequence is detected. confidence in decoded data is high. cgmsd cgms-a sequence detected, address 0x90 [3] logic 1 for this bit indicates that the data in the cgms1, 2, 3 registers is valid. the cgmsd bit goes high if a valid crc checksum has been calculated from a received cgms packet. when cgmsd is 0, no cgms transmission is detected and confidence in decoded data is low. when cgmsd is 1, the cgms sequence is decoded and confidence in decoded data is high. crc_enable crc cgms-a sequence, address 0xb2 [2] for certain video sources, the crc data bits may have an invalid format. in such circumstances, the crc checksum validation procedure can be disabled. the cgmsd bit goes high if the rising edge of the start bit is detected within a time window. when crc_enable is 0, no crc check is performed. the cgmsd bit goes high if the rising edge of the start bit is detected within a time window. when crc_enable is 1 (default), crc checksum is used to validate the cgms sequence. the cgmsd bit goes high for a valid checksum. adi recommended setting.
ADV7181b rev. 0 | page 47 of 96 wide screen signaling data wss1[7:0], address 0x91 [7:0], wss2[7:0], address 0x92 [7:0] figure 30 shows the bit correspondence between the analog video waveform and the wss1/wss2 registers. wss2[7:6] are undetermined and should be masked out by software. edtv data registers edtv1[7:0], address 0x93 [7:0], edtv2[7:0], address 0x94 [7:0], edtv3[7:0], address 0x95 [7:0] figure 31 shows the bit correspondence between the analog video waveform and the edtv1/edtv2/edtv3 registers. edtv3[7:6] are undetermined and should be masked out by software. edtv3[5] is reserved for future use and, for now, contains a 0. the three lsbs of the edtv waveform are currently not supported. 04984-0-031 active video wss2[5:0] wss1[7:0] run-in sequence start code 0 1 2 3 4 5 6 7 0 1 2 3 4 5 11.0 s 38.4 s 42.5 s figure 30.wss data extraction table 56. wss access information signal name register location address register default value wss1 [7:0] wss 1 [7:0] 145d 0x91 readback only wss2 [5:0] wss 2 [5:0] 146d 0x92 readback only edtv1[7:0] edtv2[7:0] edtv3[5:0] not supported 01 3456701234567012345 2 04984-0-032 figure 31. edtv data extraction table 57. edtv access information signal name register location address register default value edtv1[7:0] edtv 1 [7:0] 147d 0x93 readback only edtv2[7:0] edtv 2 [7:0] 148d 0x94 readback only edtv3[7:0] edtv 3 [7:0] 149d 0x95 readback only
ADV7181b rev. 0 | page 48 of 96 cgms data registers cgms1[7:0], address 0x96 [7:0], cgms2[7:0], address 0x97 [7:0], cgms3[7:0], address 0x98 [7:0] figure 32 shows the bit correspondence between the analog video waveform and the cgms1/cgms2/cgms3 registers. cgms3[7:4] are undetermined and should be masked out by software. closed caption data registers ccap1[7:0], address 0x99 [7:0], ccap2[7:0], address 0x9a [7:0] figure 33 shows the bit correspondence between the analog video waveform and the ccap1/ccap2 registers. ccap1[7] contains the parity bit from the first word. ccap2[7] contains the parity bit from the second word. refer to the gdecad gemstar decode ancillary data format, address 0x4c [0] section. 04984-0-033 01 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 cgms2[7:0] cgms3[3:0] cgms1[7:0] ref +100 ire +70 ire 0 ire ?40 ire 11.2 s 49.1 s 0.5 s crc sequence 2.235 s 20ns figure 32. cgms data extraction table 58. cgms access information signal name register location address register default value cgms1[7:0] cgms 1 [7:0] 150d 0x96 readback only cgms2[7:0] cgms 2 [7:0] 151d 0x97 readback only cgms3[3:0] cgms 3 [3:0] 152d 0x98 readback only 0 reference color burst (9 cycles) frequency = f sc = 3.579545mhz amplitude = 40 ire 1 ccap1[7:0] 7 cycles of 0.5035mhz (clock run-in) ccap2[7:0] 2 3 4 5 6 7 0 1 2 3 4 5 67 p a r i t y s t a r t p a r i t y byte 1 byte 0 33.764 s 10.003 s 10.5 0.25 s 12.91 s 27.382 s 50 ire 40 ire 04984-0-034 figure 33. closed caption data extraction table 59. ccap access information signal name register location address register default value ccap1[7:0] ccap 1 [7:0] 153d 0x99 readback only ccap2[7:0] ccap 2 [7:0] 154d 0x9a readback only
ADV7181b rev. 0 | page 49 of 96 letterbox detection incoming video signals may conform to different aspect ratios (16:9 wide screen of 4:3 standard ). for certain transmissions in the wide screen format, a digital sequence (wss) is transmitted with the video signal. if a wss sequence is provided, the aspect ratio of the video can be derived from the digitally decoded bits wss contains. in the absence of a wss sequence, letterbox detection may be used to find wide screen signals. the detection algorithm examines the active video content of lines at the start and end of a field. if black lines are detected, this may indicate that the currently shown picture is in wide screen format. the active video content (luminance magnitude) over a line of video is summed together. at the end of a line, this accumulated value is compared with a threshold, and a decision is made as to whether or not a particular line is black. the threshold value needed may depend on the type of input signal; some control is provided via lb_th[4:0]. detection at the start of a field the ADV7181b expects a section of at least six consecutive black lines of video at the top of a field. once those lines are detected, register lb_lct[7:0] reports back the number of black lines that were actually found. by default, the ADV7181b starts looking for those black lines in sync with the beginning of active video, for example, straight after the last vbi video line. lb_sl[3:0] allows the user to set the start of letterbox detection from the beginning of a frame on a line-by-line basis. the detection window closes in the middle of the field. detection at the end of a field the ADV7181b expects at least six continuous lines of black video at the bottom of a field before reporting back the number of lines actually found via the lb_lcb[7:0] value. the activity window for letterbox detection (end of field) starts in the mid- dle of an active field. its end is programmable via lb_el[3:0]. detection at the midrange some transmissions of wide screen video include subtitles within the lower black box. if the ADV7181b finds at least two black lines followed by some more nonblack video, for example, the subtitle, and is then followed by the remainder of the bottom black block, it reports back a midcount via lb_lcm[7:0]. if no subtitles are found, lb_lcm[7:0] reports the same number as lb_lcb[7:0]. there is a 2-field delay in the reporting of any line count parameters. there is no letterbox detected bit. the user is asked to read the lb_lct[7:0] and lb_lcb[7:0] register values and to conclude whether or not the letterbox-type video is present in software. lb_lct[7:0] letterbox line count top, address 0x9b [7:0]; lb_lcm[7:0] letterbox line coun t mid, address 0x9c [7:0]; lb_lcb[7:0] letterbox line count bottom, address 0x9d [7:0] table 60. lb_lcx access information signal name address register default value lb_lct[7:0] 0x9b readback only lb_lcm[7:0] 0x9c readback only lb_lcb[7:0] 0x9d readback only lb_th[4:0] letterbox threshold control, address 0xdc [4:0] table 61. lb_th function lb_th[4:0] description 01100 (default) default threshold for detection of black lines. 01101 to 10000 increase threshold (need larger active video content before identifying non-black lines). 00000 to 01011 decrease threshold (even small noise levels can cause the detection of non-black lines). lb_sl[3:0] letterbox start line, address 0xdd [7:4] the lb_sl[3:0] bits are set at 0100b by default. this means that letterbox detection window starts after the edtv vbi data line. for an ntsc signal, this window is from line 23 to line 286. changing the bits to 0101, the detection window starts on line 24 and ends on line 287. lb_el[3:0] letterbox end line, address 0xdd [3:0] the lb_el[3:0] bits are set at 1101b by default. this means that letterbox detection window ends with the last active video line. for an ntsc signal, this window is from line 262 to line 525. changing the bits to 1100, the detection window starts on line 261 and ends on line 254. gemstar data recovery the gemstar-compatible data recovery block (gscd) supports 1 and 2 data transmissions. in addition, it can also serve as a closed caption decoder. gemstar-compatible data transmissions can only occur in ntsc. closed caption data can be decoded in both pal and ntsc. the block is configured via i 2 c in the following way: ? gdecel[15:0] allow data recovery on selected video lines on even fields to be enabled and disabled. ? gdecol[15:0] enable the data recovery on selected lines for odd fields. ? gdecad configures the way in which data is embedded in the video data stream. the recovered data is not available through i 2 c, but is inserted into the horizontal blanking period of an itu-r. bt656-com- patible data stream. the data format is intended to comply with
ADV7181b rev. 0 | page 50 of 96 the recommendation by the international telecommunications union, itu-r bt.1364. see figure 34. for more information, see the itu website at www.itu.ch. the format of the data packet depends on the following criteria: ? transmission is 1 or 2 ? data is output in 8-bit or 4-bit format (see the description of the gdecad gemstar decode ancillary data format, address 0x4c [0] bit) ? data is closed caption (ccap) or gemstar-compatible data packets are output if the corresponding enable bit is set (see the gdecel and gdecol descriptions), and if the decoder detects the presence of data. this means that for video lines where no data has been decoded, no data packet is output even if the corresponding line enable bit is set. each data packet starts immediately after the eav code of the preceding line. figure 34 and table 62 show the overall structure of the data packet. entries within the packet are as follows: ? fixed preamble sequence of 0x00, 0xff, 0xff. ? data identification word (did). the value for the did marking a gemstar or ccap data packet is 0x140 (10-bit value). ? secondary data identification word (sdid) contains information about the video line from which data was retrieved, whether the gemstar transmission was of 1 or 2 format, and whether it was retrieved from an even or odd field. ? data count byte, giving the number of user data-words that follow. ? user data section. ? optional padding to ensure that the length of the user data-word section of a packet is a multiple of four bytes, requirement as set in itu-r bt.1364. ? checksum byte. table 62 lists the values within a generic data packet that is output by the ADV7181b in 8-bit format. in 8-bit systems, bits d1 and d0 in the data packets are disregarded. 04984-0-035 00 ff ff did sdid data count user data optional padding bytes check sum secondary data identification preamble for ancillary data data identification user data (4 or 8 words) figure 34. gemstar and ccap embedded data packet (generic) table 62. generic data output packet byte d[9] d[8] d[7] d[6] d[5] d[4] d[3] d[2] d[1] d[0] description 0 0 0 0 0 0 0 0 0 0 0 fixed preamble 1 1 1 1 1 1 1 1 1 1 1 fixed preamble 2 1 1 1 1 1 1 1 1 1 1 fixed preamble 3 0 1 0 1 0 0 0 0 0 0 did 4 !ep ep ef 2x line[3:0] 0 0 sdid 5 !ep ep 0 0 0 0 dc[1] dc[0 ] 0 0 data count (dc) 6 !ep ep 0 0 word1[7:4] 0 0 user data-words 7 !ep ep 0 0 word1[3:0] 0 0 user data-words 8 !ep ep 0 0 word2[7:4] 0 0 user data-words 9 !ep ep 0 0 word2[3:0] 0 0 user data-words 10 !ep ep 0 0 word3[7:4] 0 0 user data-words 11 !ep ep 0 0 word3[3:0] 0 0 user data-words 12 !ep ep 0 0 word4[7:4] 0 0 user data-words 13 !ep ep 0 0 word4[3:0] 0 0 user data-words 14 !cs[8] cs[8] cs[7] cs[6] cs[5] cs[4] cs[3] cs[2] 0 0 checksum
ADV7181b rev. 0 | page 51 of 96 table 63. data byte allocation 2 raw information bytes retrieved from the video line gdecad user data-words (including padding) padding bytes dc[1:0] 1 4 0 8 0 10 1 4 1 4 0 01 0 2 0 4 0 01 0 2 1 4 2 01 gemstar bit names ? did. the data identification value is 0x140 (10-bit value). care has been taken that in 8-bit systems, the 2 lsbs do not carry vital information. ? ep and !ep. the ep bit is set to ensure even parity on the data-word d[8:0]. even parity means there is always an even number of 1s within the d[8:0] bit arrangement. this includes the ep bit. !ep describes the logic inverse of ep and is output on d[9]. the !ep is output to ensure that the reserved codes of 00 and ff cannot happen. ? ef. even field identifier. ef = 1 indicates that the data was recovered from a video line on an even field. ? 2x. this bit indicates whether the data sliced was in gemstar 1 or 2 format. a high indicates 2 format. ? line[3:0]. this entry provides a code that is unique for each of the possible 16 source lines of video from which gemstar data may have been retrieved. refer to table 72 and table 73. ? dc[1:0]. data count value. the number of user data words in the packet divided by 4. the number of user data words (udw) in any packet must be an integral number of 4. padding is required at the end, if necessary (requirement as set in itu-r bt.1364). refer to table 63. ? the 2x bit determines whether the raw information retrieved from the video line was 2 or 4 bytes. the state of the gdecad bit affects whether the bytes are transmitted straight (i.e., two bytes transmitted as two bytes) or whether they are split into nibbles (i.e., two bytes transmitted as four half bytes). padding bytes are then added where necessary. ? cs[8:2]. the checksum is provided to determine the integrity of the ancillary data packet. it is calculated by summing up d[8:2] of did, sdid, the data count byte, and all udws, and ignoring any overflow during the summation. since all data bytes that are used to calculate the checksum have their 2 lsbs set to 0, the cs[1:0] bits are also always 0. !cs[8] describes the logic inversion of cs[8]. the value !cs[8] is included in the checksum entry of the data packet to ensure that the reserved values of 0x00 and 0xff do not occur. table 64 to table 67 outline the possible data packages. gemstar 2 format, half-byte output mode half-byte output mode is selected by setting cdecad = 0; full- byte output mode is selected by setting cdecad = 1. see the gdecad gemstar decode ancillary data format, address 0x4c [0] section. gemstar 1 format half-byte output mode is selected by setting cdecad = 0, full- byte output mode is selected by setting cdecad = 1. see the gdecad gemstar decode ancillary data format, address 0x4c [0] section.
ADV7181b rev. 0 | page 52 of 96 table 64. gemstar 2 data, half-byte mode byte d[9] d[8] d[7] d[6] d[5] d[4] d[3] d[2] d[1] d[0] description 0 0 0 0 0 0 0 0 0 0 0 fixed preamble 1 1 1 1 1 1 1 1 1 1 1 fixed preamble 2 1 1 1 1 1 1 1 1 1 1 fixed preamble 3 0 1 0 1 0 0 0 0 0 0 did 4 !ep ep ef 1 line[3:0] 0 0 sdid 5 !ep ep 0 0 0 0 1 0 0 0 data count 6 !ep ep 0 0 gemstar word1[7: 4] 0 0 user data-words 7 !ep ep 0 0 gemstar word1[3: 0] 0 0 user data-words 8 !ep ep 0 0 gemstar word2[7: 4] 0 0 user data-words 9 !ep ep 0 0 gemstar word2[3: 0] 0 0 user data-words 10 !ep ep 0 0 gemstar word3[7: 4] 0 0 user data-words 11 !ep ep 0 0 gemstar word3[3: 0] 0 0 user data-words 12 !ep ep 0 0 gemstar word4[7: 4] 0 0 user data-words 13 !ep ep 0 0 gemstar word4[3: 0] 0 0 user data-words 14 !cs[8] cs[8] cs[7] cs[6] cs[5] cs[4 ] cs[3] cs[2] cs[1] cs[0] checksum table 65. gemstar 2 data, full-byte mode byte d[9] d[8] d[7] d[6] d[5] d[4] d[3] d[2] d[1] d[0] description 0 0 0 0 0 0 0 0 0 0 0 fixed preamble 1 1 1 1 1 1 1 1 1 1 1 fixed preamble 2 1 1 1 1 1 1 1 1 1 1 fixed preamble 3 0 1 0 1 0 0 0 0 0 0 did 4 !ep ep ef 1 line[3:0] 0 0 sdid 5 !ep ep 0 0 0 0 0 1 0 0 data count 6 gemstar word1[7:0] 0 0 user data-words 7 gemstar word2[7:0] 0 0 user data-words 8 gemstar word3[7:0] 0 0 user data-words 9 gemstar word4[7:0] 0 0 user data-words 10 !cs[8] cs[8] cs[7] cs[6] cs[5] cs[4 ] cs[3] cs[2] cs[1] cs[0] checksum table 66. gemstar 1 data, half-byte mode byte d[9] d[8] d[7] d[6] d[5] d[4] d[3] d[2] d[1] d[0] description 0 0 0 0 0 0 0 0 0 0 0 fixed preamble 1 1 1 1 1 1 1 1 1 1 1 fixed preamble 2 1 1 1 1 1 1 1 1 1 1 fixed preamble 3 0 1 0 1 0 0 0 0 0 0 did 4 !ep ep ef 0 line[3:0] 0 0 sdid 5 !ep ep 0 0 0 0 0 1 0 0 data count 6 !ep ep 0 0 gemstar word1[7: 4] 0 0 user data-words 7 !ep ep 0 0 gemstar word1[3: 0] 0 0 user data-words 8 !ep ep 0 0 gemstar word2[7: 4] 0 0 user data-words 9 !ep ep 0 0 gemstar word2[3: 0] 0 0 user data-words 10 !cs[8] cs[8] cs[7] cs[6] cs[5] cs[4 ] cs[3] cs[2] cs[1] cs[0] checksum
ADV7181b rev. 0 | page 53 of 96 table 67. gemstar 1 data, full-byte mode byte d[9] d[8] d[7] d[6] d[5] d[4] d[3] d[2] d[1] d[0] description 0 0 0 0 0 0 0 0 0 0 0 fixed preamble 1 1 1 1 1 1 1 1 1 1 1 fixed preamble 2 1 1 1 1 1 1 1 1 1 1 fixed preamble 3 0 1 0 1 0 0 0 0 0 0 did 4 !ep ep ef 0 line[3:0] 0 0 sdid 5 !ep ep 0 0 0 0 0 1 0 0 data count 6 gemstar word1[7:0] 0 0 user data-words 7 gemstar word2[7:0] 0 0 user data-words 8 1 0 0 0 0 0 0 0 0 0 udw padding 0x200 9 1 0 0 0 0 0 0 0 0 0 udw padding 0x200 10 !cs[8] cs[8] cs[7] cs[6] cs[5] cs[4 ] cs[3] cs[2] cs[1] cs[0] checksum table 68. ntsc ccap data, half-byte mode byte d[9] d[8] d[7] d[6] d[5] d[4] d[3] d[2] d[1] d[0] description 0 0 0 0 0 0 0 0 0 0 0 fixed preamble 1 1 1 1 1 1 1 1 1 1 1 fixed preamble 2 1 1 1 1 1 1 1 1 1 1 fixed preamble 3 0 1 0 1 0 0 0 0 0 0 did 4 !ep ep ef 0 1 0 1 1 0 0 sdid 5 !ep ep 0 0 0 0 0 1 0 0 data count 6 !ep ep 0 0 ccap word1[7:4] 0 0 user data-words 7 !ep ep 0 0 ccap word1[3:0] 0 0 user data-words 8 !ep ep 0 0 ccap word2[7:4] 0 0 user data-words 9 !ep ep 0 0 ccap word2[3:0] 0 0 user data-words 10 !cs[8] cs[8] cs[7] cs[6] cs[5] cs[4 ] cs[3] cs[2] cs[1] cs[0] checksum table 69. ntsc ccap data, full-byte mode byte d[9] d[8] d[7] d[6] d[5] d[4] d[3] d[2] d[1] d[0] description 0 0 0 0 0 0 0 0 0 0 0 fixed preamble 1 1 1 1 1 1 1 1 1 1 1 fixed preamble 2 1 1 1 1 1 1 1 1 1 1 fixed preamble 3 0 1 0 1 0 0 0 0 0 0 did 4 !ep ep ef 0 1 0 1 1 0 0 sdid 5 !ep ep 0 0 0 0 0 1 0 0 data count 6 ccap word1[7:0] 0 0 user data-words 7 ccap word2[7:0] 0 0 user data-words 8 1 0 0 0 0 0 0 0 0 0 udw padding 0x200 9 1 0 0 0 0 0 0 0 0 0 udw padding 0x200 10 !cs[8] cs[8] cs[7] cs[6] cs[5] cs[4 ] cs[3] cs[2] cs[1] cs[0] checksum
ADV7181b rev. 0 | page 54 of 96 ntsc ccap data half-byte output mode is selected by setting cdecad = 0, the full-byte mode is enabled by cdecad = 1. refer to the gdecad gemstar decode ancillary data format, address 0x4c [0] section. the data packet formats are shown in table 68 and table 69. ntsc closed caption data is sliced on line 21d on even and odd fields. the corresponding enable bit has to be set high. see the gdecel[15:0] gemstar decoding even lines, address 0x48 [7:0]; address 0x49 [7:0]and the gdecol[15:0] gemstar decoding odd lines, address 0x4a [7:0]; address 0x4b [7:0] sections. pal ccap data half-byte output mode is selected by setting cdecad = 0, full- byte output mode is selected by setting cdecad = 1. see the gdecad gemstar decode ancillary data format, address 0x4c [0] section. table 70 and table 71 list the bytes of the data packet. pal closed caption data is sliced from lines 22 and 335. the corresponding enable bits have to be set. see the gdecel[15:0] gemstar decoding even lines, address 0x48 [7:0]; address 0x49 [7:0] and the gdecol[15:0] gemstar decoding odd lines, address 0x4a [7:0]; address 0x4b [7:0] sections. table 70. pal ccap data, half-byte mode byte d[9] d[8] d[7] d[6] d[5] d[4] d[3] d[2] d[1] d[0] description 0 0 0 0 0 0 0 0 0 0 0 fixed preamble 1 1 1 1 1 1 1 1 1 1 1 fixed preamble 2 1 1 1 1 1 1 1 1 1 1 fixed preamble 3 0 1 0 1 0 0 0 0 0 0 did 4 !ep ep ef 0 1 0 1 0 0 0 sdid 5 !ep ep 0 0 0 0 0 1 0 0 data count 6 !ep ep 0 0 ccap word1[7:4] 0 0 user data-words 7 !ep ep 0 0 ccap word1[3:0] 0 0 user data-words 8 !ep ep 0 0 ccap word2[7:4] 0 0 user data-words 9 !ep ep 0 0 ccap word2[3:0] 0 0 user data-words 10 !cs[8] cs[8] cs[7] cs[6] cs[5] cs[4 ] cs[3] cs[2] cs[1] cs[0] checksum table 71. pal ccap data, full-byte mode byte d[9] d[8] d[7] d[6] d[5] d[4] d[3] d[2] d[1] d[0] description 0 0 0 0 0 0 0 0 0 0 0 fixed preamble 1 1 1 1 1 1 1 1 1 1 1 fixed preamble 2 1 1 1 1 1 1 1 1 1 1 fixed preamble 3 0 1 0 1 0 0 0 0 0 0 did 4 !ep ep ef 0 1 0 1 0 0 0 sdid 5 !ep ep 0 0 0 0 0 1 0 0 data count 6 ccap word1[7:0] 0 0 user data-words 7 ccap word2[7:0] 0 0 user data-words 8 1 0 0 0 0 0 0 0 0 0 udw padding 0x200 9 1 0 0 0 0 0 0 0 0 0 udw padding 0x200 10 !cs[8] cs[8] cs[7] cs[6] cs[5] cs[4 ] cs[3] cs[2] cs[1] cs[0] checksum
ADV7181b rev. 0 | page 55 of 96 gdecel[15:0] gemstar decoding even lines, address 0x48 [7:0]; address 0x49 [7:0] the 16 bits of the gdecel[15:0] are interpreted as a collection of 16 individual line decode enable signals. each bit refers to a line of video in an even field. setting the bit enables the decoder block trying to find gemstar or closed caption-compatible data on that particular line. setting the bit to 0 prevents the decoder from trying to retrieve data. see table 72 and table 73. to retrieve closed caption data services on ntsc (line 284), gdecel[11] must be set. to retrieve closed caption data services on pal (line 335), gdecel[14] must be set. the default value of gdecel[15:0] is 0x0000. this setting instructs the decoder not to attempt to decode gemstar or ccap data from any line in the even field. gdecol[15:0] gemstar decoding odd lines, address 0x4a [7:0]; address 0x4b [7:0] the 16 bits of the gdecol[15:0] form a collection of 16 individual line decode enable signals. see table 72 and table 73. to retrieve closed caption data services on ntsc (line 21), gdecol[11] must be set. to retrieve closed caption data services on pal (line 22), gdecol[14] must be set. the default value of gdec0l[15:0] is 0x0000. this setting instructs the decoder not to attempt to decode gemstar or ccap data from any line in the odd field. gdecad gemstar decode ancillary data format, address 0x4c [0] the decoded data from gemstar-compatible transmissions or closed caption transmissions is inserted into the horizontal blanking period of the respective line of video. a potential problem may arise if the retrieved data bytes have the value 0x00 or 0xff. in an itu-r bt.656-compatible data stream, those values are reserved and used only to form a fixed preamble. the gdecad bit allows the data to be inserted into the horizontal blanking period in two ways: ? insert all data straight into the data stream, even the reserved values of 0x00 and 0xff, if they occur. this may violate the output data format specification itu-r bt.1364. ? split all data into nibbles and insert the half-bytes over double the number of cycles in a 4-bit format. when gdecad is 0, the data is split into half-bytes and inserted (default). when gdecad is 1, the data is output straight in 8-bit format. table 72. ntsc line enable bits and corresponding line numbering line[3:0] line number (itu-r bt.470) enable bit comment 0 10 gdecol[0] gemstar 1 11 gdecol[1] gemstar 2 12 gdecol[2] gemstar 3 13 gdecol[3] gemstar 4 14 gdecol[4] gemstar 5 15 gdecol[5] gemstar 6 16 gdecol[6] gemstar 7 17 gdecol[7] gemstar 8 18 gdecol[8] gemstar 9 19 gdecol[9] gemstar 10 20 gdecol[10] gemstar 11 21 gdecol[11] gemstar or closed caption 12 22 gdecol[12] gemstar 13 23 gdecol[13] gemstar 14 24 gdecol[14] gemstar 15 25 gdecol[15] gemstar 0 273 (10) gdecel[0] gemstar 1 274 (11) gdecel[1] gemstar 2 275 (12) gdecel[2] gemstar 3 276 (13) gdecel[3] gemstar 4 277 (14) gdecel[4] gemstar 5 278 (15) gdecel[5] gemstar 6 279 (16) gdecel[6] gemstar 7 280 (17) gdecel[7] gemstar 8 281 (18) gdecel[8] gemstar 9 282 (19) gdecel[9] gemstar 10 283 (20) gdecel[10] gemstar 11 284 (21) gdecel[11] gemstar or closed caption 12 285 (22) gdecel[12] gemstar 13 286 (23) gdecel[13] gemstar 14 287 (24) gdecel[14] gemstar 15 288 (25) gdecel[15] gemstar
ADV7181b rev. 0 | page 56 of 96 table 73. pal line enable bits and corresponding line numbering line[3:0] line number (itu-r bt.470) enable bit comment 12 8 gdecol[0] not valid 13 9 gdecol[1] not valid 14 10 gdecol[2] not valid 15 11 gdecol[3] not valid 0 12 gdecol[4] not valid 1 13 gdecol[5] not valid 2 14 gdecol[6] not valid 3 15 gdecol[7] not valid 4 16 gdecol[8] not valid 5 17 gdecol[9] not valid 6 18 gdecol[10] not valid 7 19 gdecol[11] not valid 8 20 gdecol[12] not valid 9 21 gdecol[13] not valid 10 22 gdecol[14] closed caption 11 23 gdecol[15] not valid 12 321 (8) gdecel[0] not valid 13 322 (9) gdecel[1] not valid 14 323 (10) gdecel[2] not valid 15 324 (11) gdecel[3] not valid 0 325 (12) gdecel[4] not valid 1 326 (13) gdecel[5] not valid 2 327 (14) gdecel[6] not valid 3 328 (15) gdecel[7] not valid 4 329 (16) gdecel[8] not valid 5 330 (17) gdecel[9] not valid 6 331 (18) gdecel[10] not valid 7 332 (19) gdecel[11] not valid 8 333 (20) gdecel[12] not valid 9 334 (21) gdecel[13] not valid 10 335 (22) gdecel[14] closed caption 11 336 (23) gdecel[15] not valid if compensation filter iffiltsel[2:0] if filter select address 0xf8 [2:0] the iffiltsel[2:0] register allows the user to compensate for saw filter characteristics on a composite input as would be observed on tuner outputs. figure 35 and figure 36 show if filter compensation for ntsc and pal. the options for this feature are as follows: ? bypass mode (default) ? ntscconsists of three filter characteristics ? palconsists of three filter characteristics see table 84 for programming details. 04984-0-043 frequency (mhz) 2.0 4.0 3.5 3.0 2.5 5.0 4.5 ?12 ?10 ?8 ?6 ?4 ?2 0 2 4 6 amplitude (db) figure 35. ntsc if compensation filter responses 04984-0-045 frequency (mhz) 3.0 5.0 4.5 4.0 3.5 6.0 5.5 ?8 ?6 ?4 ?2 0 2 4 6 amplitude (db) figure 36. pal if compensation filter responses i p 2 p c interrupt system the ADV7181b has a comprehensive interrupt register set. this map is located in register access page 2. see table 82 or details of the interrupt register map. how to access this map is described in figure 37. 04984-0-044 common i 2 c space address 0x00 => 0x3f address 0x0e bit 6,5 = 00b address 0x0e bit 6,5 = 01b i 2 c space register access page 1 address 0x40 => 0xff normal register space i 2 c space register access page 2 address 0x40 => 0x4c interrupt register space figure 37. register access page 1 and page 2
ADV7181b rev. 0 | page 57 of 96 interrupt request output operation when an interrupt event occurs, the interrupt pin intrq goes low with a programmable duration given by intrq_dur_sel[1:0] intrq_dursel[1:0], interr upt duration select address 0x40 (interrupt space) [7:6] table 74. intrq_dur_sel intrq_dursel[1:0] description 00 3 xtal periods (default) 01 15 xtal periods 10 63 xtal periods 11 active until cleared when the active until cleared interrupt duration is selected and the event that caused the interrupt is no longer in force, the interrupt persists until it is masked or cleared. for example, if the ADV7181b loses lock, an interrupt is generated and the intrq pin goes low. if the ADV7181b returns to the locked state, intrq continues to drive low until the sd_lock bit is either masked or cleared. interrupt drive level the ADV7181b resets with open drain enabled and all interrupts masked off. therefore, intrq is in a high impedance state after reset. 01 or 10 must to be written to intrq_op_sel[1:0] for a logic level to be driven out from the intrq pin. it is also possible to write to a register in the ADV7181b that manually asserts the intrq pin. this bit is mpu_stim_intrq. intrq_op_sel[1:0], interr upt duration select address 0x40 (interrupt space) [1:0] table 75. intrq_op_sel intrq_op_sel[1:0] description 00 open drain (default) 01 drive low when active 10 drive high when active 11 reserved multiple interrupt events if interrupt event 1 occurs and then interrupt event 2 occurs before the system controller has cleared or masked interrupt event 1, the ADV7181b does not generate a second interrupt signal. the system controller should check all unmasked interrupt status bits since more than one may be active. macrovision interrupt selection bits the user can select between pseudo sync pulse and color stripe detection as follows: mv_intrq_sel[1:0], macrovision interrupt selection bits address 0x40 (interrupt space) [5:4] table 76. mv_intrq_sel mv_intrq_sel [1:0] description 00 reserved 01 pseudo sync only (default) 10 color stripe only 11 either pseudo sync or color stripe additional information relating to the interrupt system is detailed in table 82.
ADV7181b rev. 0 | page 58 of 96 pixel port configuration the ADV7181b has a very flexible pixel port that can be config- ured in a variety of formats to accommodate downstream ics. table 77 and table 78 summarize the various functions that the ADV7181b pins can have in different modes of operation. the ordering of components , for example, cr versus cb, cha/b/c, can be changed. refer to the swpc swap pixel cr/cb, address 0x27 [7] section. table 77 indicates the default positions for the cr/cb components. of_sel[3:0] output format selection, address 0x03 [5:2] the modes in which the ADV7181b pixel port can be configured are under the control of of_sel[3:0]. see table 78 for details. the default llc frequency output on the llc1 pin is approxi- mately 27 mhz. for modes that operate with a nominal data rate of 13.5 mhz (0001, 0010), the clock frequency on the llc1 pin stays at the higher rate of 27 mhz. for information on outputting the nominal 13.5 mhz clock on the llc1 pin, see the llc1 output selection, llc_pad_sel[2:0], address 0x8f [6:4] section. swpc swap pixel cr/cb, address 0x27 [7] this bit allows cr and cb samples to be swapped. when swpc is 0 (default), no swapping is allowed. when swpc is 1, the cr and cb values can be swapped. llc1 output selection, llc_pad_sel[2:0], address 0x8f [6:4] the following i 2 c write allows the user to select between the llc1 (nominally at 27 mhz) and llc2 (nominally at 13.5 mhz). the llc2 signal is useful for llc2-compatible wide bus (16-bit) output modes. see of_sel[3:0] output format selection, address 0x03 [5:2] for additional information. the llc2 signal and data on the data bus are synchronized. by default, the rising edge of llc1/llc2 is aligned with the y data; the falling edge occurs when the data bus holds c data. the polarity of the clock, and therefore the y/c assignments to the clock edges, can be altered by using the polarity llc pin. when llc_pad_sel is 000, the output is nominally 27 mhz llc on the llc1 pin (default). when llc_pad_sel is 101, the output is nominally 13.5 mhz llc on the llc1 pin. table 77. p15Cp0 outp ut/input pin mapping data port pins p[15:0] format and mode 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 video out, 8-bit, 4:2:2 ycrcb[7:0]out video out, 16-bit, 4:2:2 y[7:0]out crcb[7:0] out table 78. standard definition pixel port modes p[15: 0] of_sel[3:0] format p[15:8] p[7: 0] 0010 16-bit @llc2 4:2:2 y[7:0] crcb[7:0] 0011 8-bit @llc1 4:2:2 (default) ycrcb[7:0] three-state 0110-1111 reserved reserved. do not use.
ADV7181b rev. 0 | page 59 of 96 mpu port description the ADV7181b supports a 2-wire (i 2 c-compatible) serial inter- face. two inputs, serial data (sda) and serial clock (sclk), carry information between the ADV7181b and the system i 2 c master controller. each slave device is recognized by a unique address. the ADV7181bs i 2 c port allows the user to set up and configure the decoder and to read back captured vbi data. the ADV7181b has four possible slave addresses for both read and write operations, depending on the logic level on the alsb pin. these four unique addresses are shown in table 79. the ADV7181bs alsb pin controls bit 1 of the slave address. by altering the alsb, it is possible to control two ADV7181bs in an application without having a conflict with the same slave address. the lsb (bit 0) sets either a read or write operation. logic 1 corresponds to a read operation; logic 0 corresponds to a write operation. table 79. i 2 c address for ADV7181b alsb r/w slave address 0 0 0x40 0 1 0x41 1 0 0x42 1 1 0x43 to control the device on the bus, a specific protocol must be followed. first, the master initiates a data transfer by establish- ing a start condition, which is defined by a high-to-low transition on sda while sclk remains high. this indicates that an address/data stream follows. all peripherals respond to the start condition and shift the next eight bits (7-bit address + r/w bit). the bits are transferred from msb down to lsb. the peripheral that recognizes the transmitted address responds by pulling the data line low during the ninth clock pulse; this is known as an acknowledge bit. all other devices withdraw from the bus at this point and maintain an idle condition. the idle condition is where the device monitors the sda and sclk lines, waiting for the start condition and the correct transmitted address. the r/w bit determines the direction of the data. logic 0 on the lsb of the first byte means that the master writes information to the peripheral. logic 1 on the lsb of the first byte means that the master reads information from the peripheral. the ADV7181b acts as a standard slave device on the bus. the data on the sda pin is eight bits long, supporting the 7-bit addresses plus the r/w bit. the ADV7181b has 249 subad- dresses to enable access to the internal registers. it therefore interprets the first byte as the device address and the second byte as the starting subaddress. the subaddresses auto- increment, allowing data to be written to or read from the starting subaddress. a data transfer is always terminated by a stop condition. the user can also access any unique subaddress register on a one-by-one basis without updating all the registers. stop and start conditions can be detected at any stage during the data transfer. if these conditions are asserted out of sequence with normal read and write operations, they cause an immediate jump to the idle condition. during a given sclk high period, the user should only issue one start condition, one stop condition, or a single stop condition followed by a single start condition. if an invalid subaddress is issued by the user, the ADV7181b does not issue an acknowledge and returns to the idle condition. if in auto-increment mode the user exceeds the highest subaddress, the following action is taken: 1. in read mode, the highest subaddress register contents continue to be output until the master device issues a no- acknowledge. this indicates the end of a read. a no- acknowledge condition is when the sda line is not pulled low on the ninth pulse. 2. in write mode, the data for the invalid byte is not loaded into any subaddress register, a no acknowledge is issued by the ADV7181b, and the part returns to the idle condition. 04984-0-036 sdata sclock start addr ack ack data ack stop subaddress 1?7 1?7 89 8 9 1?789 s p r/w figure 38. bus data transfer 04984-0-037 s write s equence slave addr a(s) sub addr a(s) data a(s) data a(s) p s read s equence slave addr slave addr a(s) sub addr a(s) s a(s) data a(m) data a(m) p s = start bit p = stop bit a(s) = acknowledge by slave a(m) = acknowledge by master a(s) = no-acknowledge by slave a(m) = no-acknowledge by master lsb = 1 lsb = 0 figure 39: read and write sequence
ADV7181b rev. 0 | page 60 of 96 register accesses the mpu can write to or read from all of the ADV7181bs registers, except the subaddress register, which is write-only. the subaddress register determines which register the next read or write operation accesses. all communications with the part through the bus start with an access to the subaddress register. then, a read/write operation is performed from/to the target address, which then increments to the next address until a stop command on the bus is performed. register programming the following sections describe each register in terms of its configuration. the communications register is an 8-bit, write- only register. after the part has been accessed over the bus and a read/write operation is selected, the subaddress is set up. the subaddress register determines to/from which register the operation takes place. table 81 lists the various operations under the control of the subaddress register for the control port. register select (sr7Csr0) these bits are set up to point to the required starting address. i 2 c sequencer an i 2 c sequencer is used when a parameter exceeds eight bits, and is therefore distributed over two or more i 2 c registers, for example, hsb [11:0]. when such a parameter is changed using two or more i 2 c write operations, the parameter may hold an invalid value for the time between the first i 2 c being completed and the last i 2 c being completed. in other words, the top bits of the parameter may already hold the new value while the remaining bits of the parameter still hold the previous value. to avoid this problem, the i 2 c sequencer holds the already updated bits of the parameter in local memory; all bits of the parameter are updated together once the last register write operation has completed. the correct operation of the i 2 c sequencer relies on the following: ? all i 2 c registers for the parameter in question must be written to in order of ascending addresses. for example, for hsb[10:0], write to address 0x34 first, followed by 0x35. ? no other i 2 c taking place between the two (or more) i 2 c writes for the sequence. for example, for hsb[10:0], write to address 0x34 first, immediately followed by 0x35.
ADV7181b rev. 0 | page 61 of 96 i 2 c register maps table 80. common and normal (p age 1) register map details subaddress register name reset value rw dec hex input control 0000 0000 rw 0 0x00 video selection 1100 1000 rw 1 0x01 reserved 0000 0100 rw 2 0x02 output control 0000 1100 rw 3 0x03 extended output control 01xx 0101 rw 4 0x04 reserved 0000 0000 rw 5 0x05 reserved 0000 0010 rw 6 0x06 autodetect enable 0111 1111 rw 7 0x07 contrast 1000 0000 rw 8 0x08 reserved 1000 0000 rw 9 0x09 brightness 0000 0000 rw 10 0x0a hue 0000 0000 rw 11 0x0b default value y 0011 0110 rw 12 0x0c default value c 0111 1100 rw 13 0x0d adi control 0000 0000 rw 14 0x0e power management 0000 0000 rw 15 0x0f status 1 xxxx xxxx r 16 0x10 ident xxxx xxxx r 17 0x11 status 2 xxxx xxxx r 18 0x12 status 3 xxxx xxxx r 19 0x13 analog clamp control 0001 0010 rw 20 0x14 digital clamp control 1 0100 xxxx rw 21 0x15 reserved xxxx xxxx rw 22 0x16 shaping filter control 0000 0001 rw 23 0x17 shaping filter control 2 1001 0011 rw 24 0x18 comb filter control 1111 0001 rw 25 0x19 reserved xxxx xxxx rw 26C28 0x1aC0x1c adi control 2 0000 0xxx rw 29 0x1d reserved xxxx xxxx rw 30-38 0x1e-0x26 pixel delay control 0101 1000 rw 39 0x27 reserved xxxx xxxx rw 40-42 0x28C0x2a misc gain control 1110 0001 rw 43 0x2b agc mode control 1010 1110 rw 44 0x2c chroma gain control 1 1111 0100 rw 45 0x2d chroma gain control 2 0000 0000 rw 46 0x2e luma gain control 1 1111 xxxx rw 47 0x2f luma gain control 2 xxxx xxxx rw 48 0x30 vsync field control 1 0001 0010 rw 49 0x31 vsync field control 2 0100 0001 rw 50 0x32 vsync field control 3 1000 0100 rw 51 0x33 hsync position control 1 0000 0000 rw 52 0x34 hsync position control 2 0000 0010 rw 53 0x35 hsync position control 3 0000 0000 rw 54 0x36 polarity 0000 0001 rw 55 0x37 ntsc comb control 1000 0000 rw 56 0x38 pal comb control 1100 0000 rw 57 0x39 adc control 0001 0000 rw 58 0x3a
ADV7181b rev. 0 | page 62 of 96 subaddress register name reset value rw dec hex reserved xxxx xxxx rw 59C60 0x3bC0x3c manual window control 0100 0011 rw 61 0x3d reserved xxxx xxxx rw 62C64 0x3eC0x40 resample control 0100 0001 rw 65 0x41 reserved xxxx xxxx rw 66-71 0x42-0x47 gemstar ctrl 1 00000000 rw 72 0x48 gemstar ctrl 2 0000 0000 rw 73 0x49 gemstar ctrl 3 0000 0000 rw 74 0x4a gemstar ctrl 4 0000 0000 rw 75 0x4b gemstar ctrl 5 xxxx xxx0 rw 76 0x4c cti dnr ctrl 1 1110 1111 rw 77 0x4d cti dnr ctrl 2 0000 1000 rw 78 0x4e reserved xxxx xxxx rw 79 0x4f cti dnr ctrl 4 0000 1000 rw 80 0x50 lock count 0010 0100 rw 81 0x51 reserved xxxx xxxx rw 82C142 0x52C0x8e free run line length 1 0000 0000 w 143 0x8f reserved 0000 0000 w 144 0x90 vbi info xxxx xxxx r 144 0x90 wss 1 xxxx xxxx r 145 0x91 wss 2 xxxx xxxx r 146 0x92 edtv 1 xxxx xxxx r 147 0x93 edtv 2 xxxx xxxx r 148 0x94 edtv 3 xxxx xxxx r 149 0x95 cgms 1 xxxx xxxx r 150 0x96 cgms 2 xxxx xxxx r 151 0x97 cgms 3 xxxx xxxx r 152 0x98 ccap 1 xxxx xxxx r 153 0x99 ccap 2 xxxx xxxx r 154 0x9a letterbox 1 xxxx xxxx r 155 0x9b letterbox 2 xxxx xxxx r 156 0x9c letterbox 3 xxxx xxxx r 157 0x9d reserved xxxx xxxx rw 158-177 0x9eC0xb1 crc enable 0001 1100 w 178 0xb2 reserved xxxx xxxx rw 179C194 0xb2C0xc2 adc switch 1 xxxx xxxx rw 195 0xc3 adc switch 2 0xxx xxxx rw 196 0xc4 reserved xxxx xxxx rw 197C219 0xc5C0xdb letterbox control 1 1010 1100 rw 220 0xdc letterbox control 2 0100 1100 rw 221 0xdd reserved 0000 0000 rw 222 0xde reserved 0000 0000 rw 223 0xdf reserved 0001 0100 rw 224 0xe0 sd offset cb 1000 0000 rw 225 0xe1 sd offset cr 1000 0000 rw 226 0xe2 sd saturation cb 1000 0000 rw 227 0xe3 sd saturation cr 1000 0000 rw 228 0xe4 ntsc v bit begin 0010 0101 rw 229 0xe5 ntsc v bit end 0000 0100 rw 230 0xe6 ntsc f bit toggle 0110 0011 rw 231 0xe7 pal v bit begin 0110 0101 rw 232 0xe8 pal v bit end 0001 0100 rw 233 0xe9
ADV7181b rev. 0 | page 63 of 96 subaddress register name reset value rw dec hex pal f bit toggle 0110 0011 rw 234 0xea reserved xxxx xxxx rw 235-243 0xeb-0xf3 drive strength xx01 0101 rw 244 0xf4 reserved xxxx xxxx rw 245-247 0xf5-0xf7 if comp control 0000 0000 rw 248 0xf8 vs mode control 0000 0000 rw 249 0xf9 table 81. common and normal (p age 1) register map bit names register name bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 input control vid_sel.3 vid_sel.2 vid_sel.1 vid_sel.0 insel.3 insel.2 insel.1 insel.0 video selection enhspll betacam envsproc reserved output control vbi_en tod of_sel.3 of_sel.2 of_sel.1 of_sel.0 sd_dup_av extended output control bt656-4 tim_oe bl_c_vbi en_sfl_pi range reserved reserved autodetect enable ad_sec525_en ad_secam_en ad_n443_en ad_p60_en ad _paln_en ad_palm_en ad_ntsc_en ad_pal_en contrast con.7 con.6 con.5 co n.4 con.3 con.2 con.1 con.0 reserved brightness bri.7 bri.6 bri.5 bri.4 bri.3 bri.2 bri.1 bri.0 hue hue.7 hue.6 hue.5 hue.4 hue.3 hue.2 hue.1 hue.0 default value y def_y.5 def_y.4 def_y.3 def_y.2 def_y.1 def_y.0 def_val_ auto_en def_val_en default value c def_c.7 def_c.6 def_c.5 def_ c.4 def_c.3 def_c.2 def_c.1 def_c.0 adi control sub_usr_en.0 power management res pwrdn pdbp status 1 col_kill ad_result.2 ad _result.1 ad_result.0 follow_pw fsc_lock lost_lock in_lock ident ident.7 ident.6 ident.5 ident.4 ident.3 ident.2 ident.1 ident.0 status 2 fsc nstd ll nstd mv ag c det mv ps det mvcs t3 mvcs det status 3 pal sw lock interlace std fld len free_run_act sd_op_50 hz gemd inst_hlock analog clamp control cclen digital clamp control 1 dct.1 dct.0 reserved shaping filter control csfm.2 csfm.1 csfm.0 ysfm.4 ysfm.3 ysfm.2 ysfm.1 ysfm.0 shaping filter control 2 wysfmovr wysfm.4 wysfm. 3 wysfm.2 wysfm.1 wysfm.0 comb filter control nsfsel.1 nsfsel.0 psfsel.1 psfsel.0 reserved adi control 2 tri_llc en28xtal vs_jit_comp_en reserved pixel delay control swpc auto_pdc_en cta.2 cta.1 cta.0 lta.1 lta.0 reserved misc gain control cke pw_upd agc mode control lagc.2 lagc.1 lagc.0 cagc.1 cagc.0 chroma gain control 1 cagt.1 cagt.0 cmg.11 cmg.10 cmg.9 cmg.8 chroma gain control 2 cmg.7 cmg.6 cmg.5 cmg.4 cmg.3 cmg.2 cmg.1 cmg.0
ADV7181b rev. 0 | page 64 of 96 register name bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 luma gain control 1 lagt.1 lgat.0 lmg.11 lmg.10 lmg.9 lmg.8 luma gain control 2 lmg.7 lmg.6 lmg.5 lmg.4 lmg.3 lmg.2 lmg.1 lmg.0 vsync field control 1 newavmode hvstim vsync field control 2 vsbho vsbhe vsync field control 3 vseho vsehe hsync position control 1 hsb.10 hsb.9 hsb.8 hse.10 hse.9 hse.8 hsync position control 2 hsb.7 hsb.6 hsb.5 hsb.4 hsb.3 hsb.2 hsb.1 hsb.0 hsync position control 3 hse.7 hse.6 hse.5 hse.4 hse.3 hse.2 hse.1 hse.0 polarity phs pvs pf pclk ntsc comb control ctapsn.1 ctapsn.0 ccmn.2 ccmn.1 ccmn.0 ycmn.2 ycmn.1 ycmn.0 pal comb control ctapsp.1 ctapsp.0 ccmp.2 ccmp.1 ccmp.0 ycmp.2 ycmp.1 ycmp.0 adc control pwrdn_ad c_0 pwrdn_ad c_1 pwrdn_adc_2 reserved manual window control ckillthr.2 ckillthr.1 ckillthr.0 reserved resample control sfl_inv reserved gemstar ctrl 1 gdecel.15 gdecel.14 gdecel.13 gdecel.12 gdecel.11 gdecel.10 gdecel.9 gdecel.8 gemstar ctrl 2 gdecel.7 gdecel.6 gdecel.5 gdecel.4 gdecel.3 gdecel.2 gdecel.1 gdecel.0 gemstar ctrl 3 gdecol.15 gdecol.14 gdecol.13 gd ecol.12 gdecol.11 gdecol.10 gdecol.9 gdecol.8 gemstar ctrl 4 gdecol.7 gdecol.6 gdecol.5 gdecol.4 gdecol.3 gdecol.2 gdecol.1 gdecol.0 gemstar ctrl 5 gdecad cti dnr ctrl 1 dnr_en cti_ ab.1 cti_ab.0 cti_ab_en cti_en cti dnr ctrl 2 cti_c_th.7 cti_c_th.6 cti_c_th.5 cti_ c_th.4 cti_c_th.3 cti_c_th.2 cti_c_th.1 cti_c_th.0 reserved cti dnr ctrl 4 dnr_th.7 dnr_th.6 dnr_th.5 dn r_th.4 dnr_th.3 dnr_th .2 dnr_th.1 dnr_th.0 lock count fscle srls col.2 col.1 col.0 cil.2 cil.1 cil.0 reserved free run line length 1 llc_pad_sel.2 llc_pad_se l.1 llc_pad_sel.0 reserved vbi info cgmsd edtvd ccapd wssd wss 1 wss1.7 wss1.6 wss1.5 wss1.4 wss1.3 wss1.2 wss1.1 wss1.0 wss 2 wss2.7 wss2.6 wss2.5 wss2.4 wss2.3 wss2.2 wss2.1 wss2.0 edtv 1 edtv1.7 edtv1.6 edtv1.5 edtv 1.4 edtv1.3 edtv1.2 edtv1.1 edtv1.0 edtv 2 edtv2.7 edtv2.6 edtv2.5 edtv 2.4 edtv2.3 edtv2.2 edtv2.1 edtv2.0 edtv 3 edtv3.7 edtv3.6 edtv3.5 edtv 3.4 edtv3.3 edtv3.2 edtv3.1 edtv3.0 cgms 1 cgms1.7 cgms1.6 cgms1.5 cgms 1.4 cgms1.3 cgms1.2 cgms1.1 cgms1.0 cgms 2 cgms2.7 cgms2.6 cgms2.5 cgms 2.4 cgms2.3 cgms2.2 cgms2.1 cgms2.0 cgms 3 cgms3.7 cgms3.6 cgms3.5 cgms 3.4 cgms3.3 cgms3.2 cgms3.1 cgms3.0 ccap 1 ccap1.7 ccap1.6 ccap1.5 ccap1.4 ccap1.3 ccap1.2 ccap1.1 ccap1.0 ccap 2 ccap2.7 ccap2.6 ccap2.5 ccap2.4 ccap2.3 ccap2.2 ccap2.1 ccap2.0 letterbox 1 lb_lct.7 lb_lct.6 lb_lct.5 lb_lct.4 lb_lct.3 lb_lct.2 lb_lct.1 lb_lct.0 letterbox 2 lb_lcm.7 lb_lcm.6 lb_lcm.5 lb_lcm.4 lb_lcm.3 lb_lcm.2 lb_lcm.1 lb_lcm.0 letterbox 3 lb_lcb.7 lb_lcb.6 lb_lcb.5 lb_lcb.4 lb_lcb.3 lb_lcb.2 lb_lcb.1 lb_lcb.0 reserved crc enable crc_enable reserved adc switch 1 adc1_sw.3 adc1_sw.2 adc1_sw.1 adc1_sw.0 adc0_sw.3 adc0_sw.2 adc0_sw.1 adc0_sw.0
ADV7181b rev. 0 | page 65 of 96 register name bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 adc switch 2 adc_sw_m an adc2_sw.3 adc2_sw.2 adc2_sw.1 adc2_sw.0 reserved letterbox control 1 lb_th.4 lb_th.3 lb_th.2 lb_th.1 lb_th.0 letterbox control 2 lb_sl.3 lb_sl.2 lb_sl.1 lb_sl.0 lb_el.3 lb_el.2 lb_el.1 lb_el.0 reserved reserved reserved sd offset cb sd_off_cb.7 sd_off_cb.6 sd_off_cb.5 sd_o ff_cb.4 sd_off_cb.3 sd_off_cb .2 sd_off_cb.1 sd_off_cb.0 sd offset cr sd_off_cr.7 sd_off_cr.6 sd_off_cr.5 sd_off_ cr.4 sd_off_cr.3 sd_off_cr.2 sd_off_cr .1 sd_off_cr.0 sd saturation cb sd_sat_cb.7 sd_sat_cb.6 sd_sat_cb.5 sd_sat_cb.4 sd_sat_cb.3 sd_sat_cb.2 sd_sat_cb.1 sd_sat_cb.0 sd saturation cr sd_sat_cr.7 sd_sat_cr.6 sd_sat_cr.5 sd_sat_cr.4 sd_sat_cr.3 sd_sat_cr.2 sd_sat_cr.1 sd_sat_cr.0 ntsc v bit begin nvbegdel o nvbegdel e nvbegsign nv beg.4 nvbeg.3 nvbeg.2 nvbeg.1 nvbeg.0 ntsc v bit end nvenddel o nvenddel e nvendsign nvend.4 nvend.3 nvend.2 nvend.1 nvend.0 ntsc f bit toggle nftogdel o nftogdel e nftogsign nftog.4 nftog.3 nftog.2 nftog.1 nftog.0 pal v bit begin pvbegdel o pvbegdel e pvbegsign pvbeg.4 pvbeg.3 pvbeg.2 pvbeg.1 pvbeg.0 pal v bit end pvenddel o pvenddel e pvendsign pvend.4 pvend.3 pvend.2 pvend.1 pvend.0 pal f bit toggle pftogdel o pftogdel e pftogsign pftog.4 pftog.3 pftog.2 pftog.1 pftog.0 reserved drive strength dr_str.1 dr_str.0 dr_str_c.1 dr_str_c.0 dr_str_s.1 dr_str_s.0 reserved if comp control iffiltsel.2 iffiltsel.1 iffiltsel.0 vs mode control vs_coast_ mode.1 vs_coast_ mode.0 extend_vs_ min_freq extend_vs_ max_freq
ADV7181b rev. 0 | page 66 of 96 i 2 c register map details the following registers are located in register access page 2. table 82. interrupt register map details 4 subaddress register name reset value rw dec hex bit 7 bit 6 bit 5 bit 4 bi t 3 bit 2 bit 1 bit 0 interrupt config 0 0001 x000 rw 64 0x40 intrq_ dur_sel.1 intrq_ dur_sel.0 mv_intrq _sel.1 mv_intrq _sel.0 mpu_ stim_intrq intrq_ op_sel.1 intrq_ op_sel.0 reserved 65 0x41 interrupt status 1 r 66 0x42 mv_ps_ cs_q sd_fr_ chng_q sd_ unlock_q sd_lock_ q interrupt clear 1 x000 0000 w 67 0x43 mv_ps_ cs_clr sd_fr_ chng_clr sd_unlo ck_clr sd_lock _clr interrupt maskb 1 x000 0000 rw 68 0x44 mv_ps_ cs_mskb sd_fr_ chng_ mskb sd_ unlock_ mskb sd_lock _mskb reserved 69 0x45 interrupt status 2 r 70 0x46 mpu_ stim_ intrq_q wss_ chngd_q cgms_ chngd_q gemd_q ccapd_q interrupt clear 2 0xxx 0000 w 71 0x47 mpu_ stim_int rq_clr wss_ chngd_ clr cgms_ chngd_ clr gemd_ clr ccapd_ clr interrupt maskb 2 0xxx 0000 rw 72 0x48 mpu_ stim_int rq_mskb wss_chn gd_mskb cgms_ chngd_ mskb gemd_ mskb ccapd_ mskb raw status 3 r 73 0x49 scm_ lock sd_h_ lock sd_v_ lock sd_op_ 50hz interrupt status 3 r 74 0x4a pal_sw_ lk_ chng_q scm_ lock_ chng_q sd_ad_ chng_q sd_h_ lock_ chng_q sd_v_ lock_ chng_q sd_op_ chng_q interrupt clear 3 xx00 0000 w 75 0x4b pal_sw_ lk_chng _clr scm_ lock_ chng_clr sd_ad_ chng_ clr sd_h_ lock_ chng_clr sd_v_lo ck_chng _clr sd_op_ chng_clr interrupt maskb 3 xx00 0000 rw 76 0x4c pal_sw_ lk_chng _mskb scm_ lock_ch ng_mskb sd_ad_ chng_ mskb sd_h_ lock_ch ng_mskb sd_v_ lock_ch ng_mskb sd_op_ chng_ mskb 4 to access the interrupt register map, the register access page [1:0] bits in register address 0x0e mu st be programmed to 01b. table 83. interrupt register map details bit subaddress register bit description 7 6 5 4 3 2 1 0 comments notes 0 0 open drain 0 1 drive low when active 1 0 drive high when active intrq_op_sel[1:0]. interrupt drive level select 1 1 reserved 0 manual interrupt mode disabled mpu_stim_intrq[1:0]. manual interrupt set mode 1 manual interrupt mode enabled reserved x not used 0 0 reserved 0 1 pseudo sync only 1 0 color stripe only mv_intrq_sel[1:0]. macrovision interrupt select 1 1 pseudo sync or color stripe 0 0 3 xtal periods 0 1 15 xtal periods 1 0 63 xtal periods 0x40 interrupt config 1 register access page 2 intrq_dur_sel[1:0]. interrupt duration select 1 1 active until cleared
ADV7181b rev. 0 | page 67 of 96 bit subaddress register bit description 7 6 5 4 3 2 1 0 comments notes 0x41 reserved x x x x x x x x 0 no change sd_lock_q 1 sd input has caused the decoder to go from an unlocked state to a locked state 0 no change sd_unlock_q 1 sd input has caused the decoder to go from a locked state to an unlocked state reserved x reserved x reserved x 0 no change sd_fr_chng_q 1 denotes a change in the free- run status 0 no change mv_ps_cs_q 1 pseudo sync/color striping detected. see reg 0x40 mv_intrq_sel[1:0] for selection 0x42 interrupt status 1 read-only register access page 2 reserved x these bits can be cleared or masked in resisters 0x43 and 0x44, respectively. 0 do not clear sd_lock_clr 1 clears sd_lock_q bit 0 do not clear sd_unlock_clr 1 clears sd_unlock_q bit reserved 0 not used reserved 0 not used reserved 0 not used 0 do not clear sd_fr_chng_clr 1 clears sd_fr_chng_q bit 0 do not clear mv_ps_cs_clr 1 clears mv_ps_cs_q bit 0x43 interrupt clear 1 write-only register access page 2 reserved x not used 0 masks sd_lock_q bit sd_lock_mskb 1 do not mask 0 masks sd_unlock_q bit sd_unlock_mskb 1 do not mask reserved 0 not used reserved 0 not used reserved 0 not used 0 masks sd_fr_chng_q bit sd_fr_chng_mskb 1 do not mask 0 masks mv_ps_cs_q bit mv_ps_cs_mskb 1 do not mask 0x44 interrupt mask 1 read/write register register access page 2 reserved x not used 0x45 reserved x x x x x x x x
ADV7181b rev. 0 | page 68 of 96 bit subaddress register bit description 7 6 5 4 3 2 1 0 comments notes 0 closed captioning not detected in the input video signal ccapd_q 1 closed captioning data detected in the video input signal 0 gemstar data not detected in the input video signal gemd_q 1 gemstar data detected in the input video signal 0 no change detected in cgms data in the input video signal cgms_chngd_q 1 a change is detected in the cgms data in the input video signal 0 no change detected in wss data in the input video signal wss_chngd_q 1 a change is detected in the wss data in the input video signal reserved x not used reserved x not used reserved x not used 0 manual interrupt not set 0x46 interrupt status 2 read-only register register access page 2 mpu_stim_intrq_q 1 manual interrupt set these bits can be cleared or masked by registers 0x47 and 0x48, respectively. 0 do not clear ccapd_clr 1 clears ccapd_q bit 0 do not clear gemd_clr 1 clears gemd_q bit 0 do not clear cgms_chngd_clr 1 clears cgms_chngd_q bit 0 do not clear wss_chngd_clr 1 clears wss_chngd_q bit reserved x not used reserved x not used reserved x not used 0 do not clear 0x47 interrupt clear 2 write-only register access page 2 mpu_stim_intrq_clr 1 clears mpu_stim_intrq_q bit 0 do not mask ccapd_mskb 1 masks ccapd_q bit 0 do not mask gemd_mskb 1 masks gemd_q bit 0 do not mask cgms_chngd_mskb 1 masks cgms_chngd_q bit 0 do not mask wss_chngd_mskb 1 masks wss_chngd_q bit reserved 0 not used reserved 0 not used reserved 0 not used 0 do not mask 0x48 interrupt mask 2 read / write register access page 2 mpu_stim_intrq_mskb masks mpu_stim_intrq_q bit
ADV7181b rev. 0 | page 69 of 96 bit subaddress register bit description 7 6 5 4 3 2 1 0 comments notes 0 sd 60 hz signal output sd_op_50hz sd 60/50hz frame rate at output 1 sd 50 hz signal output 0 sd vertical sync lock not established sd_v_lock 1 sd vertical sync lock established 0 sd horizontal sync lock not established sd_h_lock 1 sd horizontal sync lock established reserved x not used 0 secam lock not established scm_lock secam lock 1 secam lock established reserved x not used reserved x not used 0x49 raw status 3 read only register register access page 2 reserved x not used these bits cannot be cleared or masked. register 0x4a is used for this purpose. 0 no change in sd signal standard detected at the input sd_op_chng_q sd 60/50 hz frame rate at input 1 a change in sd signal standard is detected at the input 0 no change in sd vertical sync lock status sd_v_lock_chng_q 1 sd vertical sync lock status has changed. 0 no change in sd horizontal sync lock status. sd_h_lock_chng_q 1 sd horizontal sync lock status has changed x no change in ad_result[2:0] bits in status register 1. sd_ad_chng_q sd autodetect changed ad_result[2:0] bits in status register 1 have changed 0 no change in secam lock status scm_lock_chng_q secam lock 1 secam lock status has changed x no change in pal swinging burst lock status pal_sw_lk_chng_q pal swinging burst lock status has changed reserved x not used 0x4a interrupt status 3 read only register register access page 2 reserved x not used these bits can be cleared and masked by registers 0x4b and 0x4c, respectively.
ADV7181b rev. 0 | page 70 of 96 bit subaddress register bit description 7 6 5 4 3 2 1 0 comments notes 0 do not clear sd_op_chng_clr 1 clears sd_op_chng_q bit 0 do not clear sd_v_lock_chng_clr 1 clears sd_v_lock_chng_q bit 0 do not clear sd_h_lock_chng_clr 1 clears sd_h_lock_chng_q bit 0 do not clear sd_ad_chng_clr 1 clears sd_ad_chng_q bit 0 do not clear scm_lock_chng_clr 1 clears scm_lock_chng_q bit 0 do not clear pal_sw_lk_chng_clr 1 clears pal_sw_lk_chng_q bit reserved x not used 0x4b interrupt clear 3 write only register register access page 2 reserved x not used 0 do not mask sd_op_chng_mskb 1 masks sd_op_chng_q bit 0 do not mask sd_v_lock_chng_mskb 1 masks sd_v_lock_chng_q bit 0 do not mask sd_h_lock_chng_mskb 1 masks sd_h_lock_chng_q bit 0 do not mask sd_ad_chng_mskb 1 masks sd_ad_chng_q bit 0 do not mask scm_lock_chng_mskb 1 masks scm_lock_chng_q bit 0 do not mask pal_sw_lk_chng_mskb 1 masks pal_sw_lk_chng_q bit reserved x not used 0x4c interrupt mask 2 read / write register register access page 2 reserved x not used
ADV7181b rev. 0 | page 71 of 96 table 84. common and normal (page 1) register map details bits subaddress register bit description 76 543 210 comments notes 0 0 0 0 composite 0 0 0 1 reserved 0 0 1 0 reserved 0 0 1 1 reserved 0 1 0 0 reserved 0 1 0 1 reserved 0 1 1 0 s-video 0 1 1 1 reserved 1 0 0 0 reserved 1 0 0 1 yprpb 1 0 1 0 reserved 1 0 1 1 reserved 1 1 0 0 reserved 1 1 0 1 reserved 1 1 1 0 reserved insel [3:0]. the insel bits allow the user to select an input channel as well as the input format. 1 1 1 1 reserved 0 0 0 0 autodetect pal (bghid), ntsc (without pedestal), secam 0 0 0 1 autodetect pal (bghid), ntsc (m) (with pedestal), secam 0 0 1 0 autodetect pal (n), ntsc (m) (without pedestal), secam 0 0 1 1 autodetect pal (n), ntsc (m) (with pedestal), secam 0 1 0 0 ntsc(j) 0 1 0 1 ntsc(m) 01 1 0 pal 60 0 1 1 1 ntsc 4.43 10 0 0 pal bghid 1 0 0 1 pal n (bghid without pedestal) 1 0 1 0 pal m (without pedestal) 10 1 1 pal m 11 0 0 pal combination n 11 0 1 pal combination n 1 1 1 0 secam (with pedestal) 0x00 input control vid_sel [3:0]. the vid_sel bits allow the user to select the input video standard. 1 1 1 1 secam (with pedestal) reserved 0 0 0 set to default 0 disable vsync processor envsproc 1 enable vsync processor reserved 0 set to default 0 standard video input betacam 1 betacam input enable 0 disable hsync processor enhspl 1 enable hsync processor 0x01 video selection reserved 1 set to default
ADV7181b rev. 0 | page 72 of 96 bits subaddress register bit description 76 543 210 comments notes 0 av codes to suit 8-bit interleaved data output sd_dup_av. duplicates the av codes from the luma into the chroma path. 1 av codes duplicated (for 16-bit interfaces) reserved 0 set as default 0 0 0 0 reserved 0 0 0 1 reserved 0 1 1 0 16-bit @ llc1 4:2:2 0 0 1 1 8-bit @ llc1 4:2:2 itu-r bt.656 0 1 0 0 not used 0 1 0 1 not used 0 1 1 0 not used 0 1 1 1 not used 1 0 0 0 not used 1 0 0 1 not used 1 0 1 0 not used 1 0 1 1 not used 1 1 0 0 not used 1 1 0 1 not used 1 1 1 0 not used of_sel [3:0]. allows the user to choose from a set of output formats. 1 1 1 1 not used 0 output pins enabled see also tim_oe and tri_llc tod. three-state output drivers. this bit allows the user to three- state the output drivers: p[19:0], hs, vs, field, and sfl. 1 drivers three-stated 0 all lines filtered and scaled 0x03 output control vbi_en. allows vbi data (lines 1 to 21) to be passed through with only a minimum amount of filtering performed. 1 only active video region filtered 0 16 < y < 235, 16 < c < 240 itu-r bt.656 range. allows the user to select the range of output values. can be bt656-compliant, or can fill the whole accessible number range. 1 1 < y < 254, 1 < c < 254 extended range 0 sfl output is disabled en_sfl_pin 1 sfl information output on the sfl pin sfl output enables encoder and decoder to be connected directly 0 decode and output color bl_c_vbi. blank chroma during vbi. if set, enables data in the vbi region to be passed through the decoder undistorted. 1 blank cr and cb during vbi 0 hs, vs, f three-stated tim_oe. timing signals output enable. 1 hs, vs, f forced active controlled by tod reserved x x reserved 1 0 bt656-3-compatible 0x04 extended output control bt656-4. allows the user to select an output mode-compatible with itu- r bt656-3/4. 1 bt656-4-compatible
ADV7181b rev. 0 | page 73 of 96 bits subaddress register bit description 76 543 210 comments notes 0 disable ad_pal_en. pal b/g/i/h autodetect enable. 1 enable 0 disable ad_ntsc_en. ntsc autodetect enable. 1 enable 0 disable ad_palm_en. pal m autodetect enable. 1 enable 0 disable ad_paln_en. pal n autodetect enable. 1 enable 0 disable ad_p60_en. pal 60 autodetect enable. 1 enable 0 disable ad_n443_en. ntsc443 autodetect enable. 1 enable 0 disable ad_secam_en. secam autodetect enable. 1 enable 0 disable 0x07 autodetect enable ad_sec525_en. secam 525 autodetect enable. 1 enable 0x08 contrast register con[7:0]. contrast adjust. this is the user control for contrast adjustment. 1 0 0 0 0 0 0 0 luma gain = 1 0x00 gain = 0; 0x80 gain = 1; 0xff gain = 2 0x09 reserved reserved 1 0 0 0 0 0 0 0 0x0a brightness register bri[7:0]. this register controls the brightness of the video signal. 0 0 0 0 0 0 0 0 0x00 = 0ire; 0x7f = 100ire; 0x80 = C100ire 0x0b hue register hue[7:0]. this register contains the value for the color hue adjustment. 0 0 0 0 0 0 0 0 hue range = C90 to +90 0x0c default value y 0 free-run mode dependent on def_val_auto_en def_val_en. default value enable. 1 force free-run mode on and output blue screen 0 disable free-run mode def_val_auto_en. default value. 1 enable automatic free- run mode (blue screen) when lock is lost, free-run mode can be enabled to output stable timing, clock, and a set color. 0 0 1 1 0 1 def_y[5:0]. default value y. this register holds the y default value. y[7:0] = {def_y[5:0],0, 0} default y value output in free-run mode. 0x0d default value c 0 1 1 1 1 1 0 0 def_c[7:0]. default value c. the cr and cb default values are defined in this register. cr[7:0] = def_c[7:4],0, 0, 0, 0} cb[7:0] = def_c[3:0], 0, 0, 0, 0} default cb/cr value output in free-run mode. default values give blue screen output. 0x0e adi control reserved 0 0 0 0 0 set as default 0 access user reg map sub_usr_en. enables the user to access the interrupt map 1 access interrupt reg map see figure 37 reserved 0 0 set as default
ADV7181b rev. 0 | page 74 of 96 bits subaddress register bit description 76 543 210 comments notes 0x0f power management reserved 0 0 set to default 0 chip power-down controlled by pin pdbp. power-down bit priority selects between pwrdn bit or pin. 1 bit has priority (pin disregarded) reserved 0 0 set to default 0 system functional pwrdn. power-down places the decoder in a full power-down mode. 1 powered down see pdbp, 0x0f bit 2. reserved 0 set to default 0 normal operation res. chip reset loads all i 2 c bits with default values. 1 start reset sequence executing reset takes approx. 2 ms. this bit is self- clearing. 0x10 in_lock x in lock (right now) = 1 lost_lock x lost lock (since last read) = 1 status register 1. read-only fsc_lock x fsc lock (right now) = 1 follow_pw x peak white agc mode active = 1 provides information about the internal status of the decoder. 0 0 0 ntsm-mj 0 0 1 ntsc-443 0 1 0 pal-m 0 1 1 pal-60 1 0 0 pal-bghid 1 0 1 secam 1 1 0 pal combination n ad_result[2:0]. autodetection result reports the standard of the input video. 1 1 1 secam 525 detected standard. col_kill. x color kill is active = 1 color kill. 0x11 ident read-only ident[7:0] provides identification on the revision of the part. x x x x x x x x ADV7181b = 0x13 0x12 mvcs det x mv color striping detected 1 = detected mvcs t3 x mv color striping type 0 = type 2, 1 = type 3 mv ps det x mv pseudo sync detected 1 = detected mv agc det x mv agc pulses detected 1 = detected ll nstd x nonstandard line length 1 = detected fsc nstd x fsc frequency nonstandard 1 = detected status register 2. read-only. reserved x x 0x13 inst_hlock x 1 = horizontal lock achieved unfiltered gemd x 1 = gemstar data detected sd_op_50hz x sd 60 hz detected reserved x sd 50 hz detected sd field rate detect free_run_act x 1 = free-run mode active blue screen output std fld_len x 1 = field length standard correct field length found interlaced x 1 = interlaced video detected field sequence found status register 3. read-only. pal_sw_lock x 1 = swinging burst detected reliable swinging burst sequence reserved 0 0 1 0 set to default. 0 current sources switched off cclen. current clamp enable allows the user to switch off the current sources in the analog front. 1 current sources enabled 0x14 analog clamp control reserved 0 0 0 set to default
ADV7181b rev. 0 | page 75 of 96 bits subaddress register bit description 76 543 210 comments notes reserved 0 x x x x set to default 0 0 slow (tc = 1 s) 0 1 medium (tc = 0.5 s) 1 0 fast (tc = 0.1 s) dct[1:0]. digital clamp timing determines the time constant of the digital fine clamp circuitry. 1 1 tc dependent on video 0x15 digital clamp control 1 reserved 0 set to default 0 0 0 0 0 auto wide notch for poor quality sources or wide- band filter with comb for good quality input 0x17 0 0 0 0 1 auto narrow notch for poor quality sources or wideband filter with comb for good quality input decoder selects optimum y shaping filter depending on cvbs quality. 0 0 0 1 0 svhs 1 shaping filter control 0 0 0 1 1 svhs 2 0 0 1 0 0 svhs 3 0 0 1 0 1 svhs 4 0 0 1 1 0 svhs 5 0 0 1 1 1 svhs 6 0 1 0 0 0 svhs 7 0 1 0 0 1 svhs 8 0 1 0 1 0 svhs 9 0 1 0 1 1 svhs 10 0 1 1 0 0 svhs 11 0 1 1 0 1 svhs 12 0 1 1 1 0 svhs 13 0 1 1 1 1 svhs 14 1 0 0 0 0 svhs 15 1 0 0 0 1 svhs 16 1 0 0 1 0 svhs 17 1 0 0 1 1 svhs 18 (ccir601) 1 0 1 0 0 pal nn1 1 0 1 0 1 pal nn2 1 0 1 1 0 pal nn3 1 0 1 1 1 pal wn 1 1 1 0 0 0 pal wn 2 1 1 0 0 1 ntsc nn1 1 1 0 1 0 ntsc nn2 1 1 0 1 1 ntsc nn3 1 1 1 0 0 ntsc wn1 1 1 1 0 1 ntsc wn2 1 1 1 1 0 ntsc wn3 ysfm[4:0]. selects y shaping filter mode when in cvbs only mode. allows the user to select a wide range of low-pass and notch filters. if either auto mode is selected, the decoder selects the optimum y filter depending on the cvbs video source quality (good vs. bad). 1 1 1 1 1 reserved if one of these modes is selected,. the decoder does not change filter modes. depending on video quality, a fixed filter response (the one selected) is used for good and bad quality video. 0 0 0 auto selection 15. mhz 0 0 1 auto selection 2.17 mhz automatically selects a c filter based on video standard and quality. 0 1 0 sh1 0 1 1 sh2 1 0 0 sh3 1 0 1 sh4 1 1 0 sh5 csfm[2:0]. c shaping filter mode allows the selection from a range of low-pass chrominance filters. if either auto mode is selected, the decoder selects the optimum c filter depending on the cvbs video source quality (good vs. bad). non- auto settings force a c filter for all standards and quality of cvbs video. 1 1 1 wideband mode selects a c filter for all video standards and for good and bad video.
ADV7181b rev. 0 | page 76 of 96 bits subaddress register bit description 76 543 210 comments notes 0x18 0 0 0 0 0 reserved. do not use. 0 0 0 0 1 reserved. do not use. shaping filter control 2 0 0 0 1 0 svhs 1 0 0 0 1 1 svhs 2 0 0 1 0 0 svhs 3 00 1 0 1 svhs 4 0 0 1 1 0 svhs 5 0 0 1 1 1 svhs 6 0 1 0 0 0 svhs 7 0 1 0 0 1 svhs 8 0 1 0 1 0 svhs 9 0 1 0 1 1 svhs 10 0 1 1 0 0 svhs 11 0 1 1 0 1 svhs 12 0 1 1 1 0 svhs 13 0 1 1 1 1 svhs 14 1 0 0 0 0 svhs 15 1 0 0 0 1 svhs 16 1 0 0 1 0 svhs 17 1 0 0 1 1 svhs 18 (ccir 601) 1 0 1 0 0 reserved. do not use. ~ ~ ~ ~ ~ reserved. do not use. wysfm[4:0]. wideband y shaping filter mode allows the user to select which y shaping filter is used for the y component of y/c, ypbpr, b/w input signals; it is also used when a good quality input cvbs signal is detected. for all other inputs, the y shaping filter chosen is controlled by ysfm[4:0]. 1 1 1 1 1 reserved. do not use. reserved 0 0 set to default 0 manual select filter using wysfm[4:0] wysfmovr. enables the use of automatic wysfn filter. 1 autoselection of best filter 0 0 narrow 0 1 medium 1 0 wide psfsel[1:0]. controls the signal bandwidth that is fed to the comb filters (pal). 1 1 widest 0 0 narrow 0 1 medium 1 0 medium nsfsel[1:0]. controls the signal bandwidth that is fed to the comb filters (ntsc). 1 1 wide 0x19 comb filter control reserved 1 1 1 1 set as default reserved 0 0 x x x set to default 0 enabled vs_jit_comp_en 1 disabled 0 use 27 mhz crystal en28xtal 1 use 28 mhz crystal 0 llc pin active 0x1d adi control 2 tri_llc 1 llc pin three-stated
ADV7181b rev. 0 | page 77 of 96 bits subaddress register bit description 76 543 210 comments notes 0 0 no delay 1 0 luma 1 clk (37 ns) delayed 1 0 luma 2 clk (74 ns) early lta[1:0]. luma timing adjust allows the user to specify a timing difference between chroma and luma samples. 1 1 luma 1 clk (37 ns) early cvbs mode lta[1:0] = 00b; s-video mode lta[1:0]= 01b, yprpb mode lta[1:0] = 01b reserved 0 set to zero 0 0 0 not valid setting 0 0 1 chroma +2 pixels (early) 0 1 0 chroma +1 pixel (early) 0 1 1 no delay 1 0 0 chroma -1 pixel (late) 1 0 1 chroma -2 pixels (late) 1 1 0 chroma -3 pixels (late) cta[2:0]. chroma timing adjust allows a specified timing difference between the luma and chroma samples 1 1 1 not valid setting cvbs mode cta[2:0] = 011b s-video mode cta[2:0] = 101b yprpb mode cta[2:0] = 110b 0 use values in lta[1:0] and cta[2:0] for delaying luma/chroma auto_pdc_en. automatically programs the lta/cta values so that luma and chroma are aligned at the output for all modes of operation. 1 lta and cta values determined automatically 0 no swapping 0x27 pixel delay control swpc. allows the cr and cb samples to be swapped. 1 swap the cr and cb o/p samples see swap_cr_cb_wb, addr 0x89 0x2b 0 update once per video line pw_upd. peak white update determines the rate of gain. 1 update once per field peak white must be enabled. see lagc[2:0] reserved 1 0 0 0 0 set to default 0 color kill disabled cke. color kill enable allows the color kill function to be switched on and off. 1 color kill enabled for secam color kill, threshold is set at 8% see ckillthr[2:0] misc gain control reserved 1 set to default 0 0 manual fixed gain use cmg[11:0] 0 1 use luma gain for chroma 1 0 automatic gain based on color burst cagc[1:0]. chroma automatic gain control selects the basic mode of operation for the agc in the chroma path. 1 1 freeze chroma gain reserved 1 1 set to 1 0 0 0 manual fixed gain use lmg[11:0] 0 0 1 agc no override through peak white. man ire control. blank level to sync tip 0 1 0 agc auto-override through peak white. man ire control. blank level to sync tip 0 1 1 agc no override through peak white. auto ire control. blank level to sync tip 1 0 0 agc auto-override through peak white. auto ire control. blank level to sync tip 1 0 1 agc active video with peak white 1 1 0 agc active video with average video lagc[2:0]. luma automatic gain control selects the mode of operation for the gain control in the luma path. 1 1 1 freeze gain 0x2c agc mode control reserved 1 set to 1
ADV7181b rev. 0 | page 78 of 96 bits subaddress register bit description 76 543 210 comments notes cmg[11:8]. chroma manual gain can be used to program a desired manual chroma gain. reading back from this register in agc mode gives the current gain. 0 1 0 0 cagc[1:0] settings decide in which mode cmg[11:0] operates reserved 1 1 set to 1 00 slow (tc = 2 s) 01 medium (tc = 1 s) 1 0 fast (tc = 0.2 s) 0x2d chroma gain control 1 cagt[1:0]. chroma automatic gain timing allows adjustment of the chroma agc tracking speed. 1 1 adaptive has an effect only if cagc[1:0] is set to auto gain (10) 0x2e chroma gain control 2 cmg[7:0]. chroma manual gain lower 8 bits. see cmg[11:8] for description. 0 0 0 0 0 0 0 0 cmg[11:0] = 750d; gain is 1 in ntsc cmg[11:0] = 741d; gain is 1 in pal min value is 0dec (g = C60 db) max value is 3750 (gain = 5) lmg[11:8]. luma manual gain can be used program a desired manual chroma gain, or to read back the actual gain value used. x x x x lagc[1:0] settings decide in which mode lmg[11:0] operates reserved 1 1 set to 1 00 slow (tc = 2 s) 01 medium (tc = 1 s) 1 0 fast (tc = 0.2 s) 0x2f luma gain control 1 lagt[1:0]. luma automatic gain timing allows adjustment of the luma agc tracking speed. 1 1 adaptive only has an effect if lagc[1:0] is set to auto gain (001, 010, 011,or 100) 0x30 luma gain control 2 lmg[7:0]. luma manual gain can be used to program a desired manual chroma gain or read back the actual used gain value. x x x x x x x x lmg[11:0] = 1234d; gain is 1 in ntsc lmg[11:0] = 1266d; gain is 1 in pal min value ntsc 1024 (g = 0.85) pal (g = 0.81) max value ntsc 2468 (g = 2), pal = 2532 (g = 2) 0x31 reserved 0 1 0 set to default 0 start of line relative to hse hse = hsync end hvstim. selects where within a line of video the vs signal is asserted. 1 start of line relative to hsb hsb = hsync begin 0 eav/sav codes generated to suit adi encoders newavmode. sets the eav/sav mode. 1 manual vs/field position controlled by registers 0x32, 0x33, and 0xe5C0xea vs and field control 1 reserved 0 0 0 set to default reserved 0 0 0 0 0 1 set to default vsbhe 0 vs goes high in the middle of the line (even field) 1 vs changes state at the start of the line (even field) vsbho 0 vs goes high in the middle of the line (odd field) 0x32 vsync field control 2 1 vs changes state at the start of the line (odd field) newavmode bit must be set high. reserved 0 0 0 1 0 0 set to default vsehe 0 vs goes low in the middle of the line (even field) 1 vs changes state at the start of the line (even field) 0 vs goes low in the middle of the line (odd field) 0x33 vsync field control 3 vseho 1 vs changes state at the start of the line odd field newavmode bit must be set high.
ADV7181b rev. 0 | page 79 of 96 bits subaddress register bit description 76 543 210 comments notes hse[10:8]. hs end allows the positioning of the hs output within the video line. 0 0 0 hs output ends hse[10:0] pixels after the falling edge of hsync reserved 0 set to 0 hsb[10:8]. hs begin allows the positioning of the hs output within the video line. 0 0 0 hs output starts hsb[10:0] pixels after the falling edge of hsync 0x34 hs position control 1 reserved 0 set to 0 0x35 hs position control 2 hsb[7:0] see above, using hsb[10:0] and hse[10:0], the user can program the position and length of hs output signal. 0 0 0 0 0 0 1 0 0x36 hs position control 3 hse[7:0] see above. 0 0 0 0 0 0 0 0 using hsb and hse the user can program the position and length of the output hsync 0 invert polarity pclk. sets the polarity of llc1. 1 normal polarity as per the timing diagrams reserved 0 0 set to 0 0 active high pf. sets the field polarity. 1 active low reserved 0 set to 0 0 active high pvs. sets the vs polarity. 1 active low reserved 0 set to 0 0 active high 0x37 polarity phs. sets hs polarity. 1 active low
ADV7181b rev. 0 | page 80 of 96 bits subaddress register bit description 76 543 210 comments notes 0 0 0 adaptive 3-line, 3-tap luma 1 0 0 use low-pass notch 1 0 1 fixed luma comb (2-line) top lines of memory 1 1 0 fixed luma comb (3-line) all lines of memory ycmn[2:0]. luma comb mode, ntsc. 1 1 1 fixed luma comb (2-line) bottom lines of memory 0 0 0 3-line adaptive for ctapsn = 01 4-line adaptive for ctapsn = 10 5-line adaptive for ctapsn = 11 1 0 0 disable chroma comb 1 0 1 fixed 2-line for ctapsn = 01 fixed 3-line for ctapsn = 10 fixed 4-line for ctapsn = 11 top lines of memory 1 1 0 fixed 3-line for ctapsn = 01 fixed 4-line for ctapsn = 10 fixed 5-line for ctapsn = 11 all lines of memory ccmn[2:0]. chroma comb mode, ntsc. 1 1 1 fixed 2-line for ctapsn = 01 fixed 3-line for ctapsn = 10 fixed 4-line for ctapsn = 11 bottom lines of memory 0 0 adapts 3 lines C 2 lines 01 not used 1 0 adapts 5 lines C 3 lines 0x38 ntsc comb control ctapsn[1:0]. chroma comb taps, ntsc. 1 1 adapts 5 lines C 4 lines
ADV7181b rev. 0 | page 81 of 96 bits subaddress register bit description 76 543 210 comments notes 0x39 0 0 0 adaptive 5-line, 3-tap luma comb 1 0 0 use low-pass notch 1 1 0 fixed luma comb top lines of memory 1 1 0 fixed luma comb (5-line) all lines of memory ycmp[2:0]. luma comb mode, pal. 1 1 1 fixed luma comb (3-line) bottom lines of memory 0 0 0 3-line adaptive for ctapsn = 01 4-line adaptive for ctapsn = 10 5-line adaptive for ctapsn = 11 1 0 0 disable chroma comb fixed 2-line for ctapsn = 01 top lines of memory fixed 3-line for ctapsn = 10 1 0 1 fixed 4-line for ctapsn = 11 fixed 3-line for ctapsn = 01 all lines of memory fixed 4-line for ctapsn = 10 1 1 0 fixed 5-line for ctapsn = 11 fixed 2-line for ctapsn = 01 bottom lines of memory fixed 3-line for ctapsn = 10 ccmp[2:0]. chroma comb mode, pal. 1 1 1 fixed 4-line for ctapsn = 11 0 0 adapts 5-lines C 2 lines (2 taps) 01 not used 1 0 adapts 5 lines C 3 lines (3 taps) pal comb control ctapsp[1:0]. chroma comb taps, pal. 1 1 adapts 5 lines C 4 lines (4 taps) reserved 0 set as default 0 adc2 normal operation pwrdn_adc_2. enables power- down of adc2. 1 power down adc2 0 adc1 normal operation pwrdn_adc_1. enables power- down of adc1. 1 power down adc1 0 adc0 normal operation pwrdn_adc_0. enables power- down of adc0. 1 power down adc0 0x3a reserved 0 0 0 1 set as default reserved 0 0 1 1 set to default 0 0 0 kill at 0.5% 0 0 1 kill at 1.5% 0 1 0 kill at 2.5% 0 1 1 kill at 4% 1 0 0 kill at 8.5% 1 0 1 kill at 16% 1 1 0 kill at 32% ckillthr[2:0]. 1 1 1 reserved cke = 1 enables the color kill function and must be enabled for ckillthr[2:0] to take effect. 0x3d manual window control reserved 0 set to default
ADV7181b rev. 0 | page 82 of 96 bits subaddress register bit description 76 543 210 comments notes reserved 0 1 0 0 0 0 set to default 0 sfl compatible with adv7190/adv7191/ adv7194 encoders sfl_inv. controls the behavior of the pal switch bit. 1 sfl compatible with adv717x/adv7173x encoders 0x41 resample control reserved 0 set to default 0x48 gemstar control 1 gdecel[15:8]. see the comments column. 0 0 0 0 0 0 0 0 0x49 gemstar control 2 gdecel[7:0]. see above. 0 0 0 0 0 0 0 0 gdecel[15:0]. 16 individual enable bits that select the lines of video (even field lines 10C25) that the decoder checks for gemstar-compatible data. lsb = line 10 msb = line 25 default = do not check for gemstar- compatible data on any lines [10C25] in even fields 0x4a gemstar control 3 gdecol[15:8]. see the comments column. 0 0 0 0 0 0 0 0 0x4b gemstar control 4 gdecol[7:0]. see above. 0 0 0 0 0 0 0 0 gdecol[15:0]. 16 individual enable bits that select the lines of video (odd field lines 10C25) that the decoder checks for gemstar-compatible data. lsb = line 10 msb = line 25 default = do not check for gemstar- compatible data on any lines [10C25] in odd fields 0 split data into half byte to avoid 00/ff code. gdecad. controls the manner in which decoded gemstar data is inserted into the horizontal blanking period. 1 output in straight 8-bit format 0x4c gemstar control 5 reserved x x x x x x x undefined 0 disable cti cti_en. cti enable 1 enable cti 0 disable cti alpha blender cti_ab_en. enables the mixing of the transient improved chroma with the original signal. 1 enable cti alpha blender 0 0 sharpest mixing 0 1 sharp mixing 1 0 smooth cti_ab[1:0]. controls the behavior of the alpha-blend circuitry. 1 1 smoothest reserved 0 set to default 0 bypass the dnr block dnr_en. enable or bypass the dnr block. 1 enable the dnr block 0x4d cti dnr control 1 reserved 1 1 set to default 0x4e cti dnr control 2 cti_cth[7:0]. specifies how big the amplitude step must be to be steepened by the cti block. 0 0 0 0 1 0 0 0 0x50 cti dnr control 4 dnr_th[7:0]. specifies the maximum edge that is interpreted as noise and is therefore blanked. 0 0 0 0 1 0 0 0 set to 0x04 for a/v input; set to 0x0a for tuner input
ADV7181b rev. 0 | page 83 of 96 bits subaddress register bit description 76 543 210 comments notes 0 0 0 1 line of video 0 0 1 2 lines of video 0 1 0 5 lines of video 0 1 1 10 lines of video 1 0 0 100 lines of video 1 0 1 500 lines of video 1 1 0 1000 lines of video cil[2:0]. count-into-lock determines the number of lines the system must remain in lock before showing a locked status. 1 1 1 100000 lines of video 0 0 0 1 line of video 0 0 1 2 lines of video 0 1 0 5 lines of video 0 1 1 10 lines of video 1 0 0 100 lines of video 1 0 1 500 lines of video 1 1 0 1000 lines of video col[2:0]. count-out-of-lock determines the number of lines the system must remain out-of-lock before showing a lost-locked status. 1 1 1 100000 lines of video 0 over field with vertical info srls. select raw lock signal. selects the determination of the lock. status. 1 line-to-line evaluation 0 lock status set only by horizontal lock 0x51 lock count fscle. fsc lock enable. 1 lock status set by horizontal lock and subcarrier lock. reserved 0 0 0 0 set to default 0 0 0 llc1 (nominal 27 mhz) selected out on llc1 pin llc_pad_sel [2:0]. enables manual selection of clock for llc1 pin. 1 0 1 llc2 (nominally 13.5 mhz) selected out on llc1 pin for 16-bit 4:2:2 out, of_sel[3:0] = 0010 0x8f free run line length 1 reserved 0 set to default 0 no wss detected wssd. screen signaling detected. 1 wss detected 0 no ccap signals detected ccapd. closed caption data. 1 ccap sequence detected 0 no edtv sequence detected edtvd. edtv sequence 1 edtv sequence detected 0 no cgms transition detected cgmsd. cgms sequence 1 cgms sequence decoded 0x90 vbi info (read only) reserved x x x x read-only status bits 0x91 wss1 (read only) wss1[7:0] wide screen signaling data. x x x x x x x x 0x92 wss2 (read only) wss2[7:0] wide screen signaling data. x x x x x x x x wss2[7:6] are undetermined 0x93 edtv1 (read only) edtv1[7:0] edtv data register. x x x x x x x x 0x94 edtv2 (read only) edtv2[7:0] edtv data register. x x x x x x x x 0x95 edtv3 (read only) edtv3[7:0] edtv data register. x x x x x x x x edtv3[7:6] are undetermined edtv3[5] is reserved for future use 0x96 cgms1 (read only) cgms1[7:0] cgms data register. x x x x x x x x 0x97 cgms2 (read only) cgms2[7:0] cgms data register. x x x x x x x x 0x98 cgms3 (read only) cgms3[7:0] cgms data register. x x x x x x x x cgms3[7:4] are undetermined
ADV7181b rev. 0 | page 84 of 96 bits subaddress register bit description 76 543 210 comments notes 0x99 ccap1 (read only) ccap1[7:0] closed caption data register. x x x x x x x x ccap1[7] contains parity bit for byte 0 0x9a ccap2 (read only) ccap2[7:0] closed caption data register. x x x x x x x x ccap2[7] contains parity bit for byte 0 0x9b letterbox 1 (read only) lb_lct[7:0] letterbox data register. x x x x x x x x reports the number of black lines detected at the top of active video. 0x9c letterbox 2 (read only) lb_lcm[7:0] letterbox data register. x x x x x x x x reports the number of black lines detected in the bottom half of active video if subtitles are detected. 0x9d letterbox 3. (read only) lb_lcb[7:0] letterbox data register. x x x x x x x x reports the number of black lines detected at the bottom of active video. this feature examines the active video at the start and at the end of each field. it enables format detection even if the video is not accompanied by a cgms or wss sequence. reserved 0 0 set as default 0 turn off crc check crc_enable. enable crc checksum decoded from cgms packet to validate cgmsd. 1 cgmsd goes high with valid checksum 0xb2 crc enable write register reserved 0 0 0 1 1 set as default 0 0 0 0 no connection 0 0 0 1 ain2 0 0 1 0 no connection 0 0 1 1 no connection 0 1 0 0 ain4 0 1 0 1 ain6 0 1 1 0 no connection 0 1 1 1 no connection 1 0 0 0 no connection 1 0 0 1 ain1 1 0 1 0 no connection 1 0 1 1 no connection 1 1 0 0 ain3 1 1 0 1 ain5 1 1 1 0 no connection adc0_sw[3:0]. manual muxing control for adc0. 1 1 1 1 no connection setadc_sw_ man_en = 1 0 0 0 0 no connection 0 0 0 1 no connection 0 0 1 0 no connection 0 0 1 1 no connection 0 1 0 0 ain4 0 1 0 1 ain6 0 1 1 0 no connection 0 1 1 1 no connection 1 0 0 0 no connection 1 0 0 1 no connection 1 0 1 0 no connection 1 0 1 1 no connection 1 1 0 0 ain3 1 1 0 1 ain5 1 1 1 0 no connection 0xc3 adc switch 1 adc1_sw[3:0]. manual muxing control for adc1. 1 1 1 1 no connection setadc_sw_ man_en = 1
ADV7181b rev. 0 | page 85 of 96 bits subaddress register bit description 76 543 210 comments notes 0 0 0 0 no connection 0 0 0 1 no connection 0 0 1 0 no connection 0 0 1 1 no connection 0 1 0 0 no connection 0 1 0 1 ain6 0 1 1 0 no connection 0 1 1 1 no connection 1 0 0 0 no connection 1 0 0 1 no connection 1 0 1 0 no connection 1 0 1 1 no connection 1 1 0 0 no connection 1 1 0 1 ain5 1 1 1 0 no connection adc2_sw[3:0]. manual muxing control for adc2. 1 1 1 1 no connection setadc_sw_ man_en = 1 reserved x x x 0 disable 0xc4 adc switch 2 adc_sw_man_en. enable manual setting of the input signal muxing. 1 enable lb_th [4:0]. sets the threshold value that determines if a line is black. 0 1 1 0 0 default threshold for the detection of black lines. 0xdc letterbox control 1 reserved 1 0 1 set as default lb_el[3:0]. programs the end line of the activity window for lb detection (end of field). 1 1 0 0 lb detection ends with the last line of active video on a field. 1100b: 262/525. 0xdd letterbox control 2 lb_sl[3:0]. program the start line of the activity window for lb detection (start of field). 0 1 0 0 letterbox detection aligned with the start of active video, 0100b: 23/286 ntsc. 0xde reserved 0 0 0 0 0 0 0 0 0xdf reserved 0 0 0 0 0 0 0 0 0xe0 reserved 0 0 0 1 0 1 0 0 0xe1 sd offset cb sd_off_cb [7:0]. adjusts the hue by selecting the offset for the cb channel. 1 0 0 0 0 0 0 0 0xe2 sd offset cr sd_off_cr [7:0]. adjusts the hue by selecting the offset for the cr channel. 1 0 0 0 0 0 0 0 0xe3 sd saturation cb sd_sat_cb [7:0]. adjusts the saturation of the picture by affecting gain on the cb channel. 1 0 0 0 0 0 0 0 chroma gain = 0 db 0xe4 sd saturation cr sd_sat_cr [7:0]. adjusts the saturation of the picture by affecting gain on the cr channel. 1 0 0 0 0 0 0 0 chroma gain = 0 db nvbeg[4:0]. how many lines after l count rollover to set v high. 0 0 1 0 1 ntsc default (bt.656) 0 set to low when manual programming nvbegsign 1 not suitable for user programming 0 no delay nvbegdele. delay v bit going high by one line relative to nvbeg (even field). 1 additional delay by 1 line 0 no delay 0xe5 ntsc v bit begin nvbegdelo. delay v bit going high by one line relative to nvbeg (odd field). 1 additional delay by 1 line
ADV7181b rev. 0 | page 86 of 96 bits subaddress register bit description 76 543 210 comments notes nvend[4:0]. how many lines after l count rollover to set v low. 0 0 1 0 0 ntsc default (bt.656) 0 set to low when manual programming nvendsign 1 not suitable for user programming 0 no delay nvenddele. delay v bit going low by one line relative to nvend (even field). 1 additional delay by 1 line 0 no delay 0xe6 ntsc v bit end nvenddelo. delay v bit going low by one line relative to nvend (odd field). 1 additional delay by 1 line nftog[4:0]. how many lines after l count rollover to toggle f signal. 0 0 0 1 1 ntsc default 0 set to low when manual programming nftogsign 1 not suitable for user programming 0 no delay nftogdele. delay f transition by one line relative to nftog (even field). 1 additional delay by 1 line 0 no delay 0xe7 ntsc f bit toggle nftogdelo. delay f transition by one line relative to nftog (odd field). 1 additional delay by 1 line pvbeg[4:0]. how many lines after l count rollover to set v high. 0 0 1 0 1 pal default (bt.656) 0 set to low when manual programming pvbegsign 1 not suitable for user programming 0 no delay pvbegdele. delay v bit going high by one line relative to pvbeg (even field). 1 additional delay by 1 line 0 no delay 0xe8 pal v bit begin pvbegdelo. delay v bit going high by one line relative to pvbeg (odd field). 1 additional delay by 1 line pvend[4:0]. how many lines after l count rollover to set v low. 1 0 1 0 0 pal default (bt.656) 0 set to low when manual programming pvendsign 1 not suitable for user programming 0 no delay pvenddele. delay v bit going low by one line relative to pvend (even field). 1 additional delay by 1 line 0 no delay 0xe9 pal v bit end pvenddelo. delay v bit going low by one line relative to pvend (odd field). 1 additional delay by 1 line pftog[4:0]. how many lines after l count rollover to toggle f signal. 0 0 0 1 1 pal default (bt.656) 0 set to low when manual programming pftogsign 1 not suitable for user programming 0 no delay pftogdele. delay f transition by one line relative to pftog (even field). 1 additional delay by 1 line 0 no delay 0xea pal f bit toggle pftogdelo. delay f transition by one line relative to pftog (odd field). 1 additional delay by 1 line
ADV7181b rev. 0 | page 87 of 96 bits subaddress register bit description 76 543 210 comments notes 0 0 low drive strength (1x) 0 1 medium-low drive strength (2x) 1 0 medium-high drive strength (3x) dr_str_s[1:0] select the drive strength for the sync output signals. 1 1 high drive strength (4x) 0 0 low drive strength (1x) 0 1 medium-low drive strength (2x) 1 0 medium-high drive strength (3x) dr_str_c[1:0] select the drive strength for the clock output signal. 1 1 high drive strength (4x) 0 0 low drive strength (1x) 0 1 medium-low drive strength (2x) 1 0 medium-high drive strength (3x) dr_str[1:0] select the drive strength for the data output signals. can be increased or decreased for emc or crosstalk reasons. 1 1 high drive strength (4x) 0xf4 drive strength reserved x x no delay 0 0 0 bypass mode 0 db 2 mhz 5 mhz 0 0 1 ? 3 db ? 2 db 0 1 0 ? 6 db +3.5 db 0 1 1 ? 10 db +5 db ntsc dilters 1 0 0 reserved 3 mhz 6 mhz 1 0 1 ? 2 db +2 db 1 1 0 ? 5 db +3 db iffiltsel[2:0] if filter selection for pal and ntsc 1 1 1 ? 7 db +5 db pal filters 0xf8 if comp control reserved 0 0 0 0 0 0 limit maximum vsync frequency to 66.25 hz (475 lines/frame) extend_vs_max_freq 1 limit maximum vsync frequency to 70.09 hz (449 lines/frame) 0 limit minimum vsync frequency to 42.75 hz (731 lines/frame) extend_vs_min_freq 1 limit minimum vsync frequency to 39.51 hz (791 lines/frame) 0 0 auto coast mode 0 1 50 hz coast mode 1 0 60 hz coast mode vs_coast_mode[1:0] 1 1 reserved this value sets up the output coast frequency. 0xf9 vs mode control reserved 0 0 0 0
ADV7181b rev. 0 | page 88 of 96 i 2 c programming examples mode 1 cvbs input (composite video on ain6) all standards are supported through autodetect, 8-bit, 4:2:2, itu-r bt.656 output on p15Cp8. table 85. mode 1 cvbs input register address register value notes 0x15 0x00 slow down digital clamps. 0x17 0x41 set csfm to sh1. 0x3a 0x16 power down adc 1 and adc 2. 0x50 0x04 set dnr threshold. 0xc3 0x05 man mux ain6 to adc0 (0101). 0xc4 0x80 enable manual muxing. 0x0e 0x80 adi recommended programming sequence. this sequence must be followed exactly when setting up the decoder. 0x50 0x20 recommended setting. 0x52 0x18 recommended setting. 0x58 0xed recommended setting. 0x77 0xc5 recommended setting. 0x7c 0x93 recommended setting. 0x7d 0x00 recommended setting. 0xd0 0x48 recommended setting. 0xd5 0xa0 recommended setting. 0xd7 0xea recommended setting. 0xe4 0x3e recommended setting. 0xea 0x0f recommended setting. 0x0e 0x00 recommended setting. mode 2 s-video input (y on ain1 and c on ain4) all standards are supported through autodetect, 8-bit, itu-r bt.656 output on p15Cp8. table 86. mode 2 s-video input register address register value notes 0x00 0x06 s-video input 0x15 0x00 slow down digital clamps. 0x3a 0x12 power down adc 2. 0x50 0x04 set dnr threshold. 0xc3 0x41 man mux ain2 to adc0 (0001), ain4 to adc1 (0100). 0xc4 0x80 enable manual muxing 0x0e 0x80 adi recommended programming sequence. this sequence must be followed exactly when setting up the decoder. 0x50 0x20 recommended setting. 0x52 0x18 recommended setting. 0x58 0xed recommended setting. 0x77 0xc5 recommended setting. 0x7c 0x93 recommended setting. 0x7d 0x00 recommended setting. 0xd0 0x48 recommended setting. 0xd5 0xa0 recommended setting. 0xd7 0xea recommended setting. 0xe4 0x3e recommended setting. 0xea 0x0f recommended setting. 0x0e 0x00 recommended setting.
ADV7181b rev. 0 | page 89 of 96 mode 3 525i/625i yprpb input (y on ai n1, pr on ain3, and pb on ain5) all standards are supported through autodetect, 8-bit, itu-r bt.656 output on p15Cp8. table 87. mode 3 yprpb input 525i/625i register address register value notes 0x00 0x0a yprpb input 0x50 0x04 set dnr threshold. 0xc3 0xc9 man mux ain1 to adc0 (1001), ain3 to adc1 (1100). 0xc4 0x8d enable manual muxing , man mux ain5 to adc2 (1101) 0x0e 0x80 adi recommended programming sequence. this sequence must be followed exactly when setting up the decoder. 0x52 0x18 recommended setting. 0x58 0xed recommended setting. 0x77 0xc5 recommended setting. 0x7c 0x93 recommended setting. 0x7d 0x00 recommended setting. 0xd0 0x48 recommended setting. 0xd5 0xa0 recommended setting. 0xe4 0x3e recommended setting. 0x0e 0x00 recommended setting. mode 4 cvbs tuner input cvbs pal on ain6 8-bit, itu-r bt.656 output on p15Cp8. table 88. mode 4 tuner input cvbs pal only register address register value notes 0x00 0x80 force pal input only mode. 0x07 0x01 enable pal autodetection only. 0x15 0x00 slow down digital clamps. 0x17 0x41 set csfm to sh1. 0x19 0xfa stronger dot crawl reduction. 0x3a 0x16 power down adc 1 and adc 2. 0x50 0x0a set higher dnr threshold. 0xc3 0x05 man mux ain6 to adc0 (0101). 0xc4 0x80 enable manual muxing 0x0e 0x80 adi recommended programming sequence. this sequence must be followed exactly when setting up the decoder. 0x50 0x20 recommended setting. 0x52 0x18 recommended setting. 0x58 0xed recommended setting. 0x77 0xc5 recommended setting. 0x7c 0x93 recommended setting. 0x7d 0x00 recommended setting. 0xd0 0x48 recommended setting. 0xd5 0xa0 recommended setting. 0xd7 0xea recommended setting. 0xe4 0x3e recommended setting. 0xea 0x0f recommended setting. 0x0e 0x00 recommended setting.
ADV7181b rev. 0 | page 90 of 96 pcb layout recommendations the ADV7181b is a high precision, high speed mixed-signal device. to achieve the maximum performance from the part, it is important to have a well laid-out pcb board. the following is a guide for designing a board using the ADV7181b. analog interface inputs care should be taken when routing the inputs on the pcb. track lengths should be kept to a minimum, and 75 ? trace impedances should be used when possible. trace impedances other than 75 ? also increase the chance of reflections. power supply decoupling it is recommended to decouple each power supply pin with 0.1 f and 10 nf capacitors. the fundamental idea is to have a decoupling capacitor within about 0.5 cm of each power pin. also, avoid placing the capacitor on the opposite side of the pc board from the ADV7181b, as doing so interposes resistive vias in the path. the decoupling capacitors should be located between the power plane and the power pin. current should flow from the power plane to the capacitor to the power pin. do not make the power connection between the capacitor and the power pin. placing a via underneath the 100 nf capacitor pads, down to the power plane, is generally the best approach (see figure 40). 04984-0-038 vdd gnd 10nf 100nf via to supply via to gnd figure 40. recommended power supply decoupling it is particularly important to maintain low noise and good stability of pvdd. careful attention must be paid to regulation, filtering, and decoupling. it is highly desirable to provide separate regulated supplies for each of the analog circuitry groups (avdd, dvdd, dvddio, and pvdd). some graphic controllers use substantially different levels of power when active (during active picture time) and when idle (during horizontal and vertical sync periods). this can result in a measurable change in the voltage supplied to the analog supply regulator, which can, in turn, produce changes in the regulated analog supply voltage. this can be mitigated by regulating the analog supply, or at least pvdd, from a different, cleaner power source, for example, from a 12 v supply. it is also recommended to use a single ground plane for the entire board. this ground plane should have a space between the analog and digital sections of the pcb (see figure 41). 04984-0-039 analog section digital section ADV7181b figure 41. pcb ground layout experience has repeatedly shown that the noise performance is the same or better with a single ground plane. using multiple ground planes can be detrimental because each separate ground plane is smaller, and long ground loops can result. in some cases, using separate ground planes is unavoidable. for those cases, it is recommended to place a single ground plane under the ADV7181b. the location of the split should be under the ADV7181b. for this case, it is even more important to place components wisely because the current loops are much longer (current takes the path of least resistance). an example of a current loop: power plane to ADV7181b to digital output trace to digital data receiver to digital ground plane to analog ground plane. pll place the pll loop filter components as close as possible to the elpf pin. do not place any digital or other high frequency traces near these components. use the values suggested in the data sheet with tolerances of 10% or less. digital outputs (both data and clocks) try to minimize the trace length that the digital outputs have to drive. longer traces have higher capacitance, which requires more current, which causes more internal digital noise. shorter traces reduce the possibility of reflections. adding a 30 ? to 50 ? series resistor can suppress reflections, reduce emi, and reduce the current spikes inside the ADV7181b. if series resistors are used, place them as close as possible to the ADV7181b pins. however, try not to add vias or extra length to the output trace to make the resistors closer. if possible, limit the capacitance that each of the digital outputs drives to less than 15 pf. this can easily be accomplished by keeping traces short and by connecting the outputs to only one device. loading the outputs with excessive capacitance increases the current transients inside the ADV7181b, creating more digital noise on its power supplies.
ADV7181b rev. 0 | page 91 of 96 digital inputs the digital inputs on the ADV7181b are designed to work with 3.3 v signals, and are not tolerant of 5 v signals. extra compo- nents are needed if 5 v logic signals are required to be applied to the decoder. antialiasing filters for inputs from some video sources that are not bandwidth limited, signals outside the video band can alias back into the video band during a/d conversion and appear as noise on the output video. the ADV7181b oversamples the analog inputs by a factor of 4. this 54 mhz sampling frequency reduces the requirement for an input filter; for optimal performance it is recommended that an antialiasing filter be employed. the recommended low cost circuit for implementing this buffer and filter circuit for all analog input signals is shown in figure 43. the buffer is a simple emitter-follower using a single npn transistor. the antialiasing filter is implemented using passive components. the passive filter is a third-order butterworth filter with a ?3 db point of 9 mhz. the frequency response of the passive filter is shown in figure 42. the flat pass band up to 6 mhz is essential. the attenuation of the signal at the output of the filter due to the voltage divider of r24 and r63 is compen- sated for in the ADV7181b part using the automatic gain control. the ac-coupling capacitor at the input to the buffer creates a high-pass filter with the biasing resistors for the transistor. this filter has a cut-off of: {2 ( r39 || r89 ) c93 } C1 = 0.62 hz it is essential that the cutoff of this filter be less than 1 hz to ensure correct operation of the internal clamps within the part. these clamps ensure that the video stays within the 5 v range of the op amp used. 0 ?20 ?40 ?60 ?80 ?100 ?120 100k 30m 10m 3m 1m 300k 300m 1g 100m 04984-0-040 frequency (hz) figure 42. third-order butterworth filter response
ADV7181b rev. 0 | page 92 of 96 typical circuit connection examples of how to connect the ADV7181b video decoder are shown in figure 43 and figure 44. for a detailed schematic diagram fo r the ADV7181b, refer to the ADV7181b evaluation note. 04984-0-041 b q6 c e r38 75 ? r89 5.6k ? r63 820 ? r43 0 ? r53 56 ? r24 470 ? r39 4.7k ? c95 22pf c102 10pf c93 100 f avdd_5v l10 12 h filter buffer agnd figure 43. adi recommended antialiasi ng circuit for all input channels
ADV7181b rev. 0 | page 93 of 96 04984-0-042 2k ? 2k ? agnd dgnd agnd dgnd 0.1 f dgnd 0.01 f dgnd 33 f dgnd 10 f dgnd ferrite bead dvddio (3.3v) power supply decoupling for each power pin 0.1 f agnd 0.01 f agnd 33 f agnd 10 f agnd ferrite bead pvdd (1.8v) power supply decoupling for each power pin 0.1 f agnd 0.01 f agnd 33 f agnd 10 f agnd ferrite bead avdd (3.3v) power supply decoupling for each power pin 0.1 f dgnd 0.01 f dgnd 33 f dgnd 10 f dgnd ferrite bead dvdd (1.8v) power supply decoupling for each power pin agnd dgnd dvdd avdd pvdd dvddio ain2 100nf ain1 100nf ain3 100nf ain4 100nf ain5 100nf ain6 100nf agnd 75 ? 75 ? 75 ? 75 ? 75 ? 75 ? s-video y pr pb cbvs + capy1 capy2 agnd 0.1 f 10 f 0.1 f + capc2 cml agnd 0.1 f 0.1nf 0.1nf 10 f 0.1 f llc 27mhz output clock sfl sfl o/p hs hs o/p vs vs o/p field field o/p elpf 1.7k ? 10nf 82nf pvdd dgnd dvddio 100nf p15?p8 8-bit itu-r bt.656 pixel data @ 27mhz p7?p0 cb and cr 16-bit itu-r bt.656 pixel data @ 13.5mhz p15?p8 y1 and y2 16-bit itu-r bt.656 pixel data @ 13.5mhz p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 multi- format pixel port + 10 f 0.1 f refout agnd 0.1 f 10 f + xtal 15pf dgnd xtal1 alsb 15pf dgnd 27mhz ADV7181b dvddio dvddio select i 2 c address dvss pwrdn mpu interface control lines sclk sda 33 ? 33 ? dvddio dvddio 4.7k ? reset reset interrupt o/p intrq figure 44. typical connection diagram
ADV7181b rev. 0 | page 94 of 96 outline dimensions * compliant to jedec standards mo-220-vmmd except for exposed pad dimension pin 1 indicator top view 8.75 bsc sq 9.00 bsc sq 1 64 16 17 49 48 32 33 0.45 0.40 0.35 0.30 0.25 0.18 7.50 ref 0.60 max 0.60 max 7.25 7.10 sq* 6.95 pin 1 indicator 0.25 min 0.50 bsc 0.20 ref 12 max 0.80 max 0.65 typ 1.00 0.85 0.80 0.05 max 0.02 nom seating plane exposed pad (bottom view) figure 45. 64-lead lead frame chip scale package [lfcsp] 9 mm 9 mm body (cp-64-3) dimensions shown in millimeters top view (pins down) 1 16 17 33 32 48 49 64 0.27 0.22 0.17 0.50 bsc 10.00 bsc sq 1.60 max seating plane 0.75 0.60 0.45 view a 12.00 bsc sq 0.20 0.09 1.45 1.40 1.35 0.08 max coplanarity view a rotated 90 ccw seating plane 10 6 2 7 3.5 0 0.15 0.05 pin 1 compliant to jedec standards ms-026bcd figure 46. 64-lead low profile quad flat package [lqfp] (st-64-2) dimensions shown in millimeters note that the exposed metal paddle on the bottom of the lfcsp package must be soldered to pcb ground for proper heat dissipatio n and also for noise and mechanical strength benefits.
ADV7181b rev. 0 | page 95 of 96 ordering guide model temperature range package description package option ADV7181bbcpz 1 C40c to +85c lead frame chip scale package (lfcsp) cp-64-3 ADV7181bbstz 1 C40c to +85c low profile quad flat package (lqfp) st-64-2 eval-ADV7181bebm evaluation board 1 z = pb-free part. the ADV7181b is a pb-free environmentally friendly product. it is manufactured using the most up-to-date materials and processe s. the coating on the leads of each device is 100% pure sn electropla te. the device is suitable for pb-free applications, and can with stand surface- mount soldering at up to 255c (5c). in addition, it is backward-compatible with conventional snpb soldering processes. this means the electroplated sn coating can be soldered with sn/pb solder pastes at conven tional reflow temperatures of 220c to 235c.
ADV7181b rev. 0 | page 96 of 96 notes purchase of licensed i 2 c components of analog devices or one of its sublicensed associated companies conveys a license for the purchaser under the phi lips i 2 c patent rights to use these components in an i 2 c system, provided that the system conforms to the i 2 c standard specification as defined by philips. ? 2004 analog devices, inc. all rights reserved. trademarks and registered trademarks are the prop erty of their respective owners. d04984C0C7/04(0)


▲Up To Search▲   

 
Price & Availability of ADV7181

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X